diff --git a/core/modules/field_ui/src/Form/FieldStorageEditForm.php b/core/modules/field_ui/src/Form/FieldStorageEditForm.php index ff4c76b7fc768a4c7938e02d430036680c90b6f9..a89f0a753257cbe4baedee683040dc0010eadec8 100644 --- a/core/modules/field_ui/src/Form/FieldStorageEditForm.php +++ b/core/modules/field_ui/src/Form/FieldStorageEditForm.php @@ -146,6 +146,9 @@ public function buildForm(array $form, FormStateInterface $form_state, FieldConf 'visible' => array( ':input[name="field_storage[cardinality]"]' => array('value' => 'number'), ), + 'disabled' => array( + ':input[name="field_storage[cardinality]"]' => array('value' => -1), + ), ), );