mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 04:19:41 +01:00
even as EGroupware only displays the date, we can still store the full value, it only get truncated, when infolog get saved in webgui
This commit is contained in:
parent
b2fa12eb3e
commit
4613f6eb8a
@ -621,10 +621,9 @@ class infolog_ical extends infolog_bo
|
||||
$attribute['value'] += $taskData['info_startdate'];
|
||||
// fall throught
|
||||
case 'DUE':
|
||||
// eGroupWare uses date only
|
||||
$parts = @getdate($attribute['value']);
|
||||
$value = @mktime(0, 0, 0, $parts['mon'], $parts['mday'], $parts['year']);
|
||||
$taskData['info_enddate'] = $value;
|
||||
// even as EGroupware only displays the date, we can still store the full value
|
||||
// unless infolog get's stored, it does NOT truncate the time
|
||||
$taskData['info_enddate'] = $attribute['value'];
|
||||
break;
|
||||
|
||||
case 'COMPLETED':
|
||||
@ -657,12 +656,8 @@ class infolog_ical extends infolog_bo
|
||||
|
||||
case 'STATUS':
|
||||
// check if we (still) have X-INFOLOG-STATUS set AND it would give an unchanged status (no change by the user)
|
||||
foreach ($component->_attributes as $attr)
|
||||
{
|
||||
if ($attr['name'] == 'X-INFOLOG-STATUS') break;
|
||||
}
|
||||
$taskData['info_status'] = $this->vtodo2status($attribute['value'],
|
||||
$attr['name'] == 'X-INFOLOG-STATUS' ? $attr['value'] : null);
|
||||
($attr=$component->getAttribute('X-INFOLOG-STATUS')) ? $attr['value'] : null);
|
||||
break;
|
||||
|
||||
case 'SUMMARY':
|
||||
|
@ -411,8 +411,7 @@ class infolog_so
|
||||
*/
|
||||
function get_status($ids)
|
||||
{
|
||||
$this->db->select($this->info_table,'info_id,info_type,info_status,info_percent',array('info_id'=>$ids),__LINE__,__FILE__);
|
||||
while (($info = $this->db->row(true)))
|
||||
foreach($this->db->select($this->info_table,'info_id,info_type,info_status,info_percent',array('info_id'=>$ids),__LINE__,__FILE__) as $info)
|
||||
{
|
||||
switch ($info['info_type'].'-'.$info['info_status'])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user