Fix task insert query; adjust dialog height

This commit is contained in:
Thomas Bruederli 2012-08-05 19:32:20 +02:00
parent d75f7f2af7
commit a6118c7e44
3 changed files with 4 additions and 4 deletions

View file

@ -36,7 +36,7 @@ CREATE TABLE `tasks` (
`starttime` varchar(5) DEFAULT NULL,
`flagged` tinyint(4) NOT NULL DEFAULT '0',
`complete` float NOT NULL DEFAULT '0',
`alarms` varchar(255) NOT NULL,
`alarms` varchar(255) DEFAULT NULL,
`recurrence` varchar(255) DEFAULT NULL,
`organizer` varchar(255) DEFAULT NULL,
`attendees` text,

View file

@ -440,8 +440,8 @@ class tasklist_database_driver extends tasklist_driver
$notify_at = $this->_get_notification($prop);
$result = $this->rc->db->query(sprintf(
"INSERT INTO " . $this->db_tasks . "
(tasklist_id, uid, parent_id, created, changed, title, date, time, starttime, starttime, description, tags, alarms, notify)
VALUES (?, ?, ?, %s, %s, ?, ?, ?, ?, ?)",
(tasklist_id, uid, parent_id, created, changed, title, date, time, startdate, starttime, description, tags, alarms, notify)
VALUES (?, ?, ?, %s, %s, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
$this->rc->db->now(),
$this->rc->db->now()
),

View file

@ -975,7 +975,7 @@ function rcube_tasklist_ui(settings)
$dialog.dialog('destroy').remove();
},
buttons: buttons,
minHeight: 340,
minHeight: 460,
minWidth: 500,
width: 580
}).append(editform.show()); // adding form content AFTERWARDS massively speeds up opening on IE