T2142: Tasks: Fixed updating tasks in database driver
This commit is contained in:
parent
357644ec9b
commit
b3b695b66d
1 changed files with 4 additions and 1 deletions
|
@ -641,11 +641,14 @@ class tasklist_database_driver extends tasklist_driver
|
|||
$sql_set[] = $this->rc->db->quote_identifier($col) . '=' . $this->rc->db->quote($prop[$col]);
|
||||
}
|
||||
}
|
||||
foreach (array('parent_id', 'date', 'time', 'startdate', 'starttime', 'alarms', 'recurrence', 'status') as $col) {
|
||||
foreach (array('parent_id', 'date', 'time', 'startdate', 'starttime', 'alarms', 'recurrence') as $col) {
|
||||
if (isset($prop[$col])) {
|
||||
$sql_set[] = $this->rc->db->quote_identifier($col) . '=' . (empty($prop[$col]) ? 'NULL' : $this->rc->db->quote($prop[$col]));
|
||||
}
|
||||
}
|
||||
if (isset($prop['status'])) {
|
||||
$sql_set[] = $this->rc->db->quote_identifier('status') . '=' . $this->rc->db->quote($prop['status']);
|
||||
}
|
||||
if (isset($prop['tags'])) {
|
||||
$sql_set[] = $this->rc->db->quote_identifier('tags') . '=' . $this->rc->db->quote(join(',', (array)$prop['tags']));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue