Releases: AppsDevTeam/AjaxSelect
Releases · AppsDevTeam/AjaxSelect
v3.1.3: Merge pull request #7 from vpalousek98/master
v3.1.2
v3.1.1: Translator switch
Option to turn off automatic translation of select values
v3.1: Translator switch
Option to turn off automatic translation of select values
v3.0: Merge pull request #6 from AppsDevTeam/nette-2.1
Automatic orById
v2.2.2: NULL in setValue for INVALID_VALUE_MODE_EMPTY
Problem: When INVALID_VALUE_MODE_EMPTY is configured for AjaxSelect and selected value is invalid and then set to NULL, an error was thrown in 'count($value)'. Solution: check if $value is array before the count so the NULL value is evaluated as FALSE and count is never checked.
v2.2.1: Merge pull request #5 from AppsDevTeam/improvements
Update AbstractEntity.php
v2.2
Removed Nette 2.3 from composer.json
v2.1
v2.0: Options on ajax entity are set by `$entitySetupCallback` in construct…
…or instead of `->getAjaxEntity()-> ... ->back()` after control attachment. - Problem: Options set using ->getAjaxEntity() after control creation were not used, when the form was submitted. Cause: Workflow looks like: (1) the control is created, (2) control is attached, (3) post values are populated, (4) value is evaluated as valid, (5) ->getAjaxEntity() is called and options are set. Solution: We need to do (5) before (4). So we will set the options in callback `$entitySetupCallback` before the control is attached (between (1) and (2)). - Function `back` is not needed anymore, so it was removed. - Ability to omit `$entityName` and `$entitySetupCallback`.