除了更改核心代码field.form.inc的188行
//$max = $field_state['items_count'];
$max = $field_state['items_count'] == 0? 0:$field_state['items_count']-1;
是否还有其他方案?
include('/opt/www/fdv2/drupal.stage/web/sites/default/settings.local.php') (Line: 4) require('/opt/www/fdv2/drupal.stage/web/sites/drupal001.net/settings.php') (Line: 145) Drupal\Core\Site\Settings::initialize('/opt/www/fdv2/drupal.stage/web', 'sites/drupal001.net', Object) (Line: 1099) Drupal\Core\DrupalKernel->initializeSettings(Object) (Line: 701) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
除了更改核心代码field.form.inc的188行
//$max = $field_state['items_count'];
$max = $field_state['items_count'] == 0? 0:$field_state['items_count']-1;
是否还有其他方案?