mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
addapted for changed priority column
This commit is contained in:
parent
047fbabfed
commit
b74bb35fea
@ -191,12 +191,11 @@ function cat_id($cats)
|
|||||||
'cat' => 'Category: int(11) category-id or -name (new ones got created)',
|
'cat' => 'Category: int(11) category-id or -name (new ones got created)',
|
||||||
'startdate' => 'Start Date: DateTime: Timestamp or eg. YYYY-MM-DD hh:mm',
|
'startdate' => 'Start Date: DateTime: Timestamp or eg. YYYY-MM-DD hh:mm',
|
||||||
'enddate' => 'End Date: DateTime',
|
'enddate' => 'End Date: DateTime',
|
||||||
'datecreated' => 'Date Created: DateTime, if empty = Start Date or now',
|
|
||||||
'datemodified'=> 'Date Last Modified: DateTime, if empty = Date Created',
|
'datemodified'=> 'Date Last Modified: DateTime, if empty = Date Created',
|
||||||
'modifier' => 'Modifier: int(11) user-id, if empty current user',
|
'modifier' => 'Modifier: int(11) user-id, if empty current user',
|
||||||
'pri' => 'Priority: urgent,high,normal,low',
|
'priority' => 'Priority: 3=urgent, 2=high, 1=normal, 0=low',
|
||||||
'time' => 'Time: int(11) time used in min',
|
'planned_time'=> 'planned Time: int(11) time used in min',
|
||||||
//'bill_cat' => 'Billing Cathegory: int(11)',
|
'used_time' => 'used Time: int(11) time used in min',
|
||||||
'status' => 'Status: char(10) offer,ongoing,call,will-call,done,billed,xx%',
|
'status' => 'Status: char(10) offer,ongoing,call,will-call,done,billed,xx%',
|
||||||
'confirm' => 'Confirmation: char(10) not,accept,finish,both when to confirm',
|
'confirm' => 'Confirmation: char(10) not,accept,finish,both when to confirm',
|
||||||
'addr_id' => 'Addressbook id, to set use @addr_id(nlast,nfirst,org)'
|
'addr_id' => 'Addressbook id, to set use @addr_id(nlast,nfirst,org)'
|
||||||
@ -428,7 +427,7 @@ function cat_id($cats)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// convert dates to timestamps
|
// convert dates to timestamps
|
||||||
foreach(array('datecreated','startdate','enddate','datemodified') as $date)
|
foreach(array('startdate','enddate','datemodified') as $date)
|
||||||
{
|
{
|
||||||
if (isset($values[$date]) && !is_numeric($date))
|
if (isset($values[$date]) && !is_numeric($date))
|
||||||
{
|
{
|
||||||
@ -436,9 +435,7 @@ function cat_id($cats)
|
|||||||
$values[$date] = strtotime($values[$date]);
|
$values[$date] = strtotime($values[$date]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!isset($values['datecreated'])) $values['datecreated'] = $values['startdate'];
|
if (!isset($values['datemodified'])) $values['datemodified'] = $values['startdate'];
|
||||||
|
|
||||||
if (!isset($values['datemodified'])) $values['datemodified'] = $values['datecreated'];
|
|
||||||
|
|
||||||
// convert user-names to user-id's
|
// convert user-names to user-id's
|
||||||
foreach(array('owner','responsible') as $user)
|
foreach(array('owner','responsible') as $user)
|
||||||
|
Loading…
Reference in New Issue
Block a user