Problem with drupal_set_message

Created on 13 February 2024, 4 months ago
Updated 6 March 2024, 4 months ago

Problem/Motivation

My views displays a message when the post-processed results are empty using a php field in the header, using drupal_set_message.

When og cache is enabled, the message is only displayed before the cache is hot.
However, it behaves correctly if the message is simply echoed in the field.

Thank you very much for this very effective module.

Steps to reproduce

if($no_relations){
		drupal_set_message(t("There are no relations matching the selected filters") , 'warning'); // incorrect
		echo t("There are no relations matching the selected filters"); // correct
}

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France jvieille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024