Provide the new 'listname' attributes in database drivers, too

This commit is contained in:
Thomas Bruederli 2013-10-17 16:58:05 +02:00
parent 8039a2f6e5
commit 6f5d53a5b0
2 changed files with 2 additions and 0 deletions

View file

@ -90,6 +90,7 @@ class database_driver extends calendar_driver
$arr['showalarms'] = intval($arr['showalarms']);
$arr['active'] = !in_array($arr['id'], $hidden);
$arr['name'] = html::quote($arr['name']);
$arr['listname'] = html::quote($arr['name']);
$this->calendars[$arr['calendar_id']] = $arr;
$calendar_ids[] = $this->rc->db->quote($arr['calendar_id']);
}

View file

@ -73,6 +73,7 @@ class tasklist_database_driver extends tasklist_driver
$arr['showalarms'] = intval($arr['showalarms']);
$arr['active'] = !in_array($arr['id'], $hidden);
$arr['name'] = html::quote($arr['name']);
$arr['listname'] = html::quote($arr['name']);
$arr['editable'] = true;
$this->lists[$arr['id']] = $arr;
$list_ids[] = $this->rc->db->quote($arr['id']);