-
Improvement
-
Resolution: Won't Fix
-
Minor
-
None
-
3.8
-
None
"Duration" element constructor is allowing to specify options:
* @param array $options Options to control the element's display. Recognised values are
|
* 'optional' => true/false - whether to display an 'enabled' checkbox next to the element.
|
* 'defaultunit' => 1|60|3600|86400|604800 - the default unit to display when the time is blank.
|
* If not specified, minutes is used.
|
Currently optional flag presence in options list seems compulsory, i.e. not providing optional (value does not matter) results in "key does not exist" notice.
This fix is making possible to not to specify it at every duration element instance (it defaults to false in that case).