Hi. I have two error message, when edit or cancel user.

Double error message
Double error message

This is because we have a module i18n. It call second access callback. But it's normal.
Can we use drupal_static for a one call drupal_set_message ? Thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cherebedov.s’s picture

FileSize
1.71 KB
MegaChriz’s picture

Assigned: cherebedov.s » Unassigned
Status: Active » Needs review
FileSize
1.35 KB

drupal_set_message() has a parameter called $repeat that - if set to FALSE - should prevent duplicated messages from being shown. The attached patch sets this parameter to FALSE. Would that fix your issue as well?

cherebedov.s’s picture

Yeah it helped me, thanks. I forgot about this parameter. Your patch is more correct.

  • MegaChriz committed dfe8f5d on 7.x-1.x
    Issue #2536840 by cherebedov.s, MegaChriz: fixed double error message...
MegaChriz’s picture

Status: Needs review » Fixed

Thanks for reporting back. The patch in #2 is committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.