Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using Domain Path and Display Suite's view mode switcher together on a node form. When I switch the node's view mode, there's an in-page AJAX request that updates part of the form, and domain_path_node_validate() is called as part of the AJAX form processing.
At that point in the processing, there's no value for $form_state['values']['op'], which domain_path_node_validate() tests to see if the node is being deleted. This results in a PHP notice.
An isset() check should be all that's needed here.
Comment | File | Size | Author |
---|---|---|---|
#1 | domain_path-2155507-1.patch | 719 bytes | Les Lim |
Comments
Comment #1
Les LimPatch attached.
Comment #2
Stefan Looij CreditAttribution: Stefan Looij commentedJust letting you know this small fix did remove the PHP notice for me.
Comment #3
bnadem CreditAttribution: bnadem commentedI confirm that this patch removed the PHP Notice for me too.
Thanks for sharing this ;)
Comment #4
agentrickardTwo reviews means you can mark it RTBC.
Comment #6
i-trokhanenkoCommitted patch #1
Comment #7
i-trokhanenkoThanks!