Skip to content
Snippets Groups Projects

Issue #3226546: Fix potential undefined variable path_value on node save

1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -293,7 +293,9 @@ class DomainPathHelper {
$form_state->setError($form['path']['widget'][0]['domain_path'][$domain_id]['path'], t('Domain path %path matches an existing domain path alias', ['%path' => $path_value]));
}
}
$domain_path_values[$domain_id] = $path_value;
if (isset($path_value)) {
$domain_path_values[$domain_id] = $path_value;
}
}
$form_state->setValue('domain_path', $domain_path_values);
}
Loading