Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24533

Float FieldType has wrong default validator values

    XMLWordPrintable

    Details

      Description

      I try to edit the Almighty content type.
      /shell#/admin/contenttype%2Fupdate%2F40

      I am told by the UI " Failed to load '/contenttype/update/40'"

      See screenshot.

      Exception is the following:

      Unable to transform value for property path "validatorConfiguration[FloatValueValidator][minFloatValue]": Expected a numeric.
      
      Symfony\Component\Form\Exception\TransformationFailedException: Expected a numeric.
          at n/a
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php line 137
      
          at Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformer->transform(false)
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 1160
      
          at Symfony\Component\Form\Form->normToView(false)
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 353
      
          at Symfony\Component\Form\Form->setData(false)
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php line 57
      
          at Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper->mapDataToForms(object(FieldDefinitionData), object(RecursiveIteratorIterator))
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 396
      
          at Symfony\Component\Form\Form->setData(object(FieldDefinitionData))
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php line 57
      
          at Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper->mapDataToForms(array(object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData)), object(RecursiveIteratorIterator))
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 396
      
          at Symfony\Component\Form\Form->setData(array(object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData), object(FieldDefinitionData)))
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php line 57
      
          at Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper->mapDataToForms(object(ContentTypeData), object(RecursiveIteratorIterator))
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 396
      
          at Symfony\Component\Form\Form->setData(object(ContentTypeData))
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 488
      
          at Symfony\Component\Form\Form->initialize()
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php line 226
      
          at Symfony\Component\Form\FormBuilder->getForm()
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php line 39
      
          at Symfony\Component\Form\FormFactory->create('ezrepoforms_contenttype_update', object(ContentTypeData), array('languageCode' => 'eng-GB'))
              in /var/www/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 250
      
          at Symfony\Bundle\FrameworkBundle\Controller\Controller->createForm('ezrepoforms_contenttype_update', object(ContentTypeData), array('languageCode' => 'eng-GB'))
              in /var/www/vendor/ezsystems/platform-ui-bundle/Controller/ContentTypeController.php line 170
      
          at EzSystems\PlatformUIBundle\Controller\ContentTypeController->updateContentTypeAction(object(Request), '40', null)
              in  line 
      
          at call_user_func_array(array(object(ContentTypeController), 'updateContentTypeAction'), array(object(Request), '40', null))
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 147
      
          at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 68
      
          at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 69
      
          at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
              in /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 196
      
          at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
              in /var/www/web/index.php line 81
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Roland.Benedetti@ez.no Roland Benedetti
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: