Browse Source

AbstractFieldDefinition : ajout d'un index lors de l'ajout d'un field au tableau des fields pour pouvoir le récupérer dans les controllers #191

develop
Guillaume Bourgeois 2 years ago
parent
commit
fe857c6548
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Definition/Field/AbstractFieldDefinition.php

+ 1
- 1
Definition/Field/AbstractFieldDefinition.php View File

$fieldArray = []; $fieldArray = [];
foreach($configureFieldArray as $fieldName) { foreach($configureFieldArray as $fieldName) {
if(isset($allFieldArray[$fieldName])) { if(isset($allFieldArray[$fieldName])) {
$fieldArray[] = $allFieldArray[$fieldName];
$fieldArray[$fieldName] = $allFieldArray[$fieldName];
} }
else { else {
throw new \ErrorException('Le field "'.$fieldName.'" n\'est pas défini dans configureFields()'); throw new \ErrorException('Le field "'.$fieldName.'" n\'est pas défini dans configureFields()');

Loading…
Cancel
Save