Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
colintucker committed Nov 28, 2017
2 parents cd5f2c7 + caf320a commit 6ba0811
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Extensions/FormFieldExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ public function updateAttributes(&$attributes)
*/
public function getCalendarEnabled()
{
if ($this->owner->isReadonly() || $this->owner->isDisabled()) {
return 'false';
}

return ($this->calendarDisabled || $this->owner->config()->calendar_disabled) ? 'false' : 'true';
}

Expand Down

0 comments on commit 6ba0811

Please sign in to comment.