Skip to content

Commit

Permalink
Fixed issue #17264: Validuntil and validfrom fields don't allow just …
Browse files Browse the repository at this point in the history
…date (without time) aynmore
  • Loading branch information
c-schmitz committed Apr 20, 2021
1 parent 9d9356c commit 150022b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/models/Token.php
Expand Up @@ -430,8 +430,8 @@ public function rules()
array('usesleft', 'numerical', 'integerOnly' => true, 'allowEmpty' => true, 'min' => -2147483647, 'max' => 2147483647),
array('mpid', 'numerical', 'integerOnly' => true, 'allowEmpty' => true),
array('blacklisted', 'in', 'range' => array('Y', 'N'), 'allowEmpty' => true),
array('validfrom', 'date','format' => ['yyyy-M-d H:m:s.???','yyyy-M-d H:m:s','yyyy-M-d H:m'],'allowEmpty' => true),
array('validuntil','date','format' => ['yyyy-M-d H:m:s.???','yyyy-M-d H:m:s','yyyy-M-d H:m'],'allowEmpty' => true),
array('validfrom', 'date','format' => ['yyyy-M-d H:m:s.???','yyyy-M-d H:m:s','yyyy-M-d H:m','yyyy-M-d'],'allowEmpty' => true),
array('validuntil','date','format' => ['yyyy-M-d H:m:s.???','yyyy-M-d H:m:s','yyyy-M-d H:m','yyyy-M-d'],'allowEmpty' => true),
array('emailstatus', 'default', 'value' => 'OK'),
);
foreach (decodeTokenAttributes($this->survey->attributedescriptions) as $key => $info) {
Expand Down

0 comments on commit 150022b

Please sign in to comment.