mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Fix some missed details and simplifications in resource search options
This commit is contained in:
parent
255494fc20
commit
047ee13253
@ -965,9 +965,12 @@ app.classes.calendar = AppJS.extend(
|
||||
duration: values.duration,
|
||||
participants: values.participants,
|
||||
recur_type: values.recur_type,
|
||||
whole_day: values.whole_day,
|
||||
event_id: values.link_to.to_id, // cal_id, if available
|
||||
show_conflict: (egw.preference('defaultresource_sel','calendar') == 'resources_without_conflict') ? '0' : '1'
|
||||
};
|
||||
if(values.whole_day)
|
||||
{
|
||||
request.options.exec.whole_date = true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
@ -601,18 +601,14 @@ class resources_bo
|
||||
require_once(EGW_INCLUDE_ROOT.'/calendar/inc/class.calendar_bo.inc.php');
|
||||
$this->bocal =& CreateObject('calendar.calendar_bo');
|
||||
}
|
||||
|
||||
$startarr= getdate(strtotime($cal_info['start']));
|
||||
$start = new egw_time($cal_info['start']);
|
||||
$startarr= getdate($start->format('ts'));
|
||||
if (isset($cal_info['whole_day'])) {
|
||||
$startarr['hour'] = $startarr['minute'] = 0;
|
||||
unset($startarr['raw']);
|
||||
$start = $this->bocal->date2ts($startarr);
|
||||
$end = $start + 86399;
|
||||
$start = new egw_time($startarr);
|
||||
$end = $start->format('ts') + 86399;
|
||||
} else {
|
||||
$startarr['hour'] = $cal_info['start']['H'];
|
||||
$startarr['minute'] = $cal_info['start']['i'];
|
||||
unset($startarr['raw']);
|
||||
$start = $this->bocal->date2ts($startarr);
|
||||
$start = $start->format('ts');
|
||||
$end = $start + ($cal_info['duration']);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user