Pārlūkot izejas kodu

Fixed float/decimal filters - without this it tries to use false as the form element type, which causes an exception from the form component

Ben Lumley 13 gadi atpakaļ
vecāks
revīzija
07fa5cf148
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      Guesser/FilterTypeGuesser.php

+ 2 - 0
Guesser/FilterTypeGuesser.php

@@ -78,6 +78,8 @@ class FilterTypeGuesser extends AbstractTypeGuesser
                 return new TypeGuess('doctrine_orm_date', $options, Guess::HIGH_CONFIDENCE);
             case 'decimal':
             case 'float':
+                $options['field_type'] = 'number';
+
                 return new TypeGuess('doctrine_orm_number', $options, Guess::MEDIUM_CONFIDENCE);
             case 'integer':
             case 'bigint':