Skip to content
Snippets Groups Projects
Commit ee9cfb91 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #1001624 by pillarsdotnet: avoid 'Undefined index' notice in...

- Patch #1001624 by pillarsdotnet: avoid 'Undefined index' notice in field_info_max_weight() function of modules/field/field.info.inc.
parent bc1b67fd
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -793,7 +793,7 @@ function field_info_max_weight($entity_type, $bundle, $context) { ...@@ -793,7 +793,7 @@ function field_info_max_weight($entity_type, $bundle, $context) {
if ($context == 'form') { if ($context == 'form') {
$weights[] = $instance['widget']['weight']; $weights[] = $instance['widget']['weight'];
} }
else { elseif (isset($instance['display'][$context]['weight'])) {
$weights[] = $instance['display'][$context]['weight']; $weights[] = $instance['display'][$context]['weight'];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment