Releases: scherersoftware/cake-cktools
v3.1.0
Updated some third party dependencies
Stable Upgrade to CakePHP 3.6
- No major changes besides compatibility to CakePHP 3.6
- See previous pre-release notes
- additionally fixed PdfGenerator where with some targets configured, an exception was wrongly thrown
Add missing translation
Add missing translation
Remove Cake 3.7 function, update datepicker 3rd party lib
- refrain from using function
\Cake\View\View::getRequest(), as it is only introduced in CakePHP 3.7 - update datepicker library while maintaining IE8 compatibility.
Attention: If you want to ensure IE8 compatibility, you have to use bootstrap-datetimepicker.js and NOT bootstrap-datetimepicker.min.js, as only in the non minified version, we replaced the usage of JS trim with jQuery trim (IE support of JS trim starts with IE9)
CakePHP 3.6 support
v3.0.0-rc1 New major version for CakePHP 3.6 support (#17)
Fix handling of emptied date input
Proper clearing of the hidden inputs from v2.2.5 was enhanced to not only rely on the blur event.
Now it works on every input to the date input and clears the relevant inputs if the new value of the datepicker input is empty
Fix special character policy in StrictPasswordBehavior
- Check presence of special characters when activated
- added tests for StrictPasswordBehavior
Empty DatePicker selects completely
When emptying a date input field, the values of the hidden selects additionally get set to empty instead of only removing the selected attribute from whatever option was selected.
Update moved dependency
- Added dependency for AuthHelper being moved to "codekanzlei/cake-auth-actions"
- fix code style according to our new standard
- fix bug when using
CkToolsHelper::formButtons()with the useReferer Option
Fix edge case setting the month one forward
This release fixes a critical bug where, if the current day is not present in the month you have set into the inputs programmatically, the whole date shown in the date input picker is moved one month ahead.
For example, you are rendering a date input in an edit form where the date should be prefilled with 5th of November but the current date is the 31st of October, the date input would have shown the 5th of December.
This is due to the used JS method Date.setMonth, where if the second argument is not set, it will use the day of month of the current date and if this day is not present in the set month, the month of the resulting date will be one after the value given to the setMonth function. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMonth#Description