Changeset 941


Ignore:
Timestamp:
Aug 2, 2022, 5:41:41 PM (2 years ago)
Author:
chronos
Message:
  • Fixed: DateTime type null value handling.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Form/Form.php

    r923 r941  
    8383    $Item = $this->Definition['Items'][$Index];
    8484    $UseType = $this->GetItemType($Item);   
    85     return $this->FormManager->Type->ExecuteTypeEvent($UseType, $Event,
     85   
     86    $Result = $this->FormManager->Type->ExecuteTypeEvent($UseType, $Event,
    8687      array('Value' => $this->Values[$Index], 'Name' => $Index,
    8788      'Type' => $Item['Type'], 'Values' => $this->Values,
    8889      'Filter' => $this->Values[$Index]));
     90    if ($Result == null) return '';
     91    return $Result;
    8992  }
    9093
  • trunk/Modules/Customer/Customer.php

    r939 r941  
    3939        'Consumption' => array('Type' => 'TCustomerStockSerialNumber', 'Caption' => 'Spotřeba zařízení', 'Default' => ''),
    4040        'Contract' => array('Type' => 'TContract', 'Caption' => 'Smlouva', 'Default' => '', 'Null' => true),
    41         'PaymentEmailTime' => array('Type' => 'DateTime', 'Caption' => 'Čas platebního emailu', 'Default' => 'NOW()', 'Null' => true, 'NotInList' => true),
     41        'PaymentEmailTime' => array('Type' => 'DateTime', 'Caption' => 'Čas platebního emailu', 'Default' => 'now', 'Null' => true, 'NotInList' => true),
    4242        'ChangeAction' => array('Type' => 'TActionEnum', 'Caption' => 'Změna - akce', 'Default' => '', 'Null' => true),
    4343        'ChangeTime' => array('Type' => 'DateTime', 'Caption' => 'Změna - čas', 'Default' => '', 'Null' => true, 'NotInList' => true),
Note: See TracChangeset for help on using the changeset viewer.