Ignore:
Timestamp:
Apr 6, 2020, 9:59:59 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Init default value even if Default index is not defined.
  • Fixed: Null value support also for Date and Time form types.
File:
1 edited

Legend:

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

    r871 r872  
    5050      {
    5151        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        }
    5356      }
    5457    }
Note: See TracChangeset for help on using the changeset viewer.