|
|
@ -18,7 +18,6 @@ use Symfony\Component\Form\AbstractType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\DateTimeType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\DateTimeType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\DateType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\DateType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\HiddenType; |
|
|
|
|
|
|
|
use Symfony\Component\Form\Extension\Core\Type\IntegerType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\IntegerType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\NumberType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\NumberType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\TelType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\TelType; |
|
|
@ -58,6 +57,7 @@ class ExtraFieldType extends AbstractType |
|
|
|
if (null === $item) { |
|
|
|
if (null === $item) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$extraFieldType = ExtraField::USER_FIELD_TYPE; // user/course/session ? |
|
|
|
$extraFieldType = ExtraField::USER_FIELD_TYPE; // user/course/session ? |
|
|
|
$extraFields = $this->extraFieldRepository->getExtraFields($extraFieldType); |
|
|
|
$extraFields = $this->extraFieldRepository->getExtraFields($extraFieldType); |
|
|
|
$values = $this->extraFieldValuesRepository->getExtraFieldValuesFromItem($item, $extraFieldType); |
|
|
|
$values = $this->extraFieldValuesRepository->getExtraFieldValuesFromItem($item, $extraFieldType); |
|
|
@ -258,6 +258,7 @@ class ExtraFieldType extends AbstractType |
|
|
|
$newValue = $newValue['address'].'::'.$newValue['latitude'].','.$newValue['longitude']; |
|
|
|
$newValue = $newValue['address'].'::'.$newValue['latitude'].','.$newValue['longitude']; |
|
|
|
} |
|
|
|
} |
|
|
|
$this->extraFieldValuesRepository->updateItemData($extraField, $item, $newValue); |
|
|
|
$this->extraFieldValuesRepository->updateItemData($extraField, $item, $newValue); |
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
case \ExtraField::FIELD_TYPE_TAG: |
|
|
|
case \ExtraField::FIELD_TYPE_TAG: |
|
|
|
$formItem = $event->getForm()->get($extraField->getVariable()); |
|
|
|
$formItem = $event->getForm()->get($extraField->getVariable()); |
|
|
|