* Fix bug#14578
This commit is contained in:
@@ -75,6 +75,11 @@ class todoModel extends model
|
||||
{
|
||||
unset($todo->config['week']);
|
||||
unset($todo->config['month']);
|
||||
if($todo->config['day'] and !validater::checkInt($todo->config['day']))
|
||||
{
|
||||
dao::$errors[] = sprintf($this->lang->error->int[0], $this->lang->todo->cycleDay);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if($todo->config['type'] == 'week')
|
||||
{
|
||||
@@ -88,6 +93,12 @@ class todoModel extends model
|
||||
unset($todo->config['week']);
|
||||
$todo->config['month'] = join(',', $todo->config['month']);
|
||||
}
|
||||
|
||||
if($todo->config['beforeDays'] and !validater::checkInt($todo->config['beforeDays']))
|
||||
{
|
||||
dao::$errors[] = sprintf($this->lang->error->int[0], $this->lang->todo->cycleDay);
|
||||
return false;
|
||||
}
|
||||
$todo->config['beforeDays'] = (int)$todo->config['beforeDays'];
|
||||
$todo->config = json_encode($todo->config);
|
||||
$todo->type = 'cycle';
|
||||
|
||||
Reference in New Issue
Block a user