in multi lingual site if I edit an existing English node and change Language in Language button, hit save button, I am getting below error.

Undefined index: #node in search_config_form_node_form_alter

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

itsnadeem created an issue. See original summary.

sergiu stici’s picture

Status: Active » Needs review
StatusFileSize
new0 bytes

Here is the patch, please review.

munavir’s picture

Hi,
@itsnadeem - I tried to recreate the issue using my Drupal8 (8.7.4). I tried with 8.x-1.x-dev, but I couldn't.
@Sergiu Stici - The uploaded patch file is empty and 0KB

sergiu stici’s picture

StatusFileSize
new671 bytes

I'm sorry, here is a new patch.

fractile81’s picture

StatusFileSize
new918 bytes

Attaching a patch that changes the database query setup to only happen after an nid is found. I've also changed the suggested logic to be usable pre-PHP 7.0 (needed?).

AstonVictor made their first commit to this issue’s fork.

AstonVictor changed the visibility of the branch 3061186-undefined-index-node to hidden.

astonvictor’s picture

Status: Needs review » Fixed

thanks for the patch.

fixed.

Status: Fixed » Closed (fixed)

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