An origin page might have set status, warning or error messages to be displayed on the destination page. This is common when posting a form and the submit callback sets a success message. But if, in the meantime a new document version is released the message will end on the acceptance form and not on the destination page. The same happens if the login process sets such a message to be displayed after, on the first page after the login. The messages lands on the acceptance form.

Comments

claudiu.cristea created an issue. See original summary.

claudiu.cristea’s picture

Status: Active » Needs review
StatusFileSize
new23.82 KB

Here's a test to prove the bug.

Status: Needs review » Needs work

The last submitted patch, 2: 3080124-2.test_only.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

claudiu.cristea’s picture

Issue summary: View changes
claudiu.cristea’s picture

Status: Needs work » Needs review
StatusFileSize
new29.58 KB
new8.17 KB

The fix.

pfrenssen’s picture

Status: Needs review » Reviewed & tested by the community

This looks good to me. The test also presents a good use case for the kind of messages that might be shown: the website might show a welcome message to the user upon login. For example the message to inform the user that they used their one-time login message. These messages should not show up on the form to accept the legal entity.

claudiu.cristea’s picture

Adding credit.

  • claudiu.cristea committed b517060 on 8.x-2.x
    Issue #3080124 by claudiu.cristea, pfrenssen: Pending messages should be...
claudiu.cristea’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for review!

Status: Fixed » Closed (fixed)

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