-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Milestone
Description
We should change the getFieldDefinition. If the "readonly" is active we don't need the Datepicker. Because the datepicker is able to set a new Date.
public function getFieldDefinition($arrOverrides = array())
{
$strDateType = $this->getDateTimeType();
$readOnly = $this->getOverrideValue('readonly', $arrOverrides);
$arrFieldDef = parent::getFieldDefinition($arrOverrides);
$arrFieldDef['eval']['rgxp'] = $strDateType;
if (!$readOnly) {
$arrFieldDef['eval']['datepicker'] = ($strDateType !== 'time');
}
return $arrFieldDef;
}Metadata
Metadata
Assignees
Labels
No labels