Undefined index: op in domain_path_node_validate()

Created on 12 December 2013, over 10 years ago
Updated 3 May 2023, about 1 year ago

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.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Les Lim

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024