Skip to content

Commit

Permalink
Remove debug from calendar field as it breaks saving to the DB (#21717)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge authored and ReLater committed Sep 1, 2018
1 parent e22fbb4 commit 72351f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/joomla/form/fields/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ protected function getInput()
{
$showTime = (string) $this->element['showtime'];

$lang = \JFactory::getLanguage();
$debug = $lang->setDebug(false);

if ($showTime && $showTime != 'false')
{
$this->format = JText::_('DATE_FORMAT_CALENDAR_DATETIME');
Expand All @@ -208,6 +211,8 @@ protected function getInput()
{
$this->format = JText::_('DATE_FORMAT_CALENDAR_DATE');
}

$lang->setDebug($debug);
}

// If a known filter is given use it.
Expand Down

0 comments on commit 72351f4

Please sign in to comment.