Skip to content

Commit

Permalink
Fix salesagility#10364 - Adding now option in Datetime fields
Browse files Browse the repository at this point in the history
  • Loading branch information
SinergiaCRM committed Feb 26, 2024
1 parent 925d84b commit 769053c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/DynamicFields/templates/Fields/TemplateDatetimecombo.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class TemplateDatetimecombo extends TemplateRange
'six months'=> '+6 months',
'next year'=> '+1 year',
);

public $hoursStrings = array(
'' => '',
'01' => '01',
Expand All @@ -81,7 +81,7 @@ class TemplateDatetimecombo extends TemplateRange
'11' => '11',
'12' => '12',
);

public $hoursStrings24 = array(
'' => '',
'00' => '00',
Expand Down Expand Up @@ -109,15 +109,15 @@ class TemplateDatetimecombo extends TemplateRange
'22' => '22',
'23' => '23',
);

public $minutesStrings = array(
'' => '',
'00' => '00',
'15' => '15',
'30' => '30',
'45' => '45',
);

public $meridiemStrings = array(
'' => '',
'am' => 'am',
Expand All @@ -139,7 +139,7 @@ public function get_field_def()
}
return $def;
}

public function populateFromPost()
{
parent::populateFromPost();
Expand Down Expand Up @@ -175,7 +175,7 @@ public function populateFromPost()
}
unset($_REQUEST['defaultDate']);
unset($_REQUEST['defaultTime']);

foreach ($this->vardef_map as $vardef=>$field) {
if (isset($_REQUEST[$vardef])) {
// Bug #48826. Some fields are allowed to have special characters and must be decoded from the request
Expand Down

0 comments on commit 769053c

Please sign in to comment.