Changeset 872
- Timestamp:
- Apr 6, 2020, 9:59:59 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r871 r872 1 1 <?php 2 2 3 $Revision = 87 1; // Subversion revision3 $Revision = 872; // Subversion revision 4 4 $DatabaseRevision = 870; // SQL structure revision 5 5 $ReleaseTime = strtotime('2020-04-06'); -
trunk/Common/Form/Form.php
r871 r872 50 50 { 51 51 if (!array_key_exists($Index, $this->Values)) 52 $this->Values[$Index] = $Item['Default']; 52 { 53 if (isset($Item['Default'])) $this->Values[$Index] = $Item['Default']; 54 else $this->Values[$Index] = null; 55 } 53 56 } 54 57 } -
trunk/Common/Form/Types/Date.php
r639 r872 23 23 global $MonthNames; 24 24 25 if(($Item['Value'] !== null) and ((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == ''))) $Item['Value'] = time(); 25 if (($Item['Value'] == null) or (($Item['Value'] !== null) and ((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == '')))) 26 { 27 $Item['Value'] = time(); 28 $IsNull = true; 29 } else $IsNull = false; 26 30 $Parts = getdate($Item['Value']); 27 31 … … 30 34 if(array_key_exists('Null', $Item) and $Item['Null']) 31 35 { 32 if( $Item['Value'] != null)36 if(!$IsNull) 33 37 { 34 38 $Checked = ' checked="1"'; -
trunk/Common/Form/Types/Time.php
r659 r872 19 19 function OnEdit($Item) 20 20 { 21 if(($Item['Value'] !== null) and ((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == ''))) $Item['Value'] = time(); 22 $TimeParts = getdate($Item['Value']); 21 if (($Item['Value'] == null) or (($Item['Value'] !== null) and ((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == '')))) 22 { 23 $Item['Value'] = time(); 24 $IsNull = true; 25 } else $IsNull = false; 26 $Parts = getdate($Item['Value']); 23 27 24 28 $Output = ''; … … 26 30 if(array_key_exists('Null', $Item) and $Item['Null']) 27 31 { 28 if($I tem['Value'] != null)32 if($IsNull) 29 33 { 30 34 $Checked = ' checked="1"';
Note:
See TracChangeset
for help on using the changeset viewer.