Calendar: Fix freetime search timeslot select

This commit is contained in:
nathan 2023-11-01 09:35:03 -06:00
parent d1e7040011
commit bed98c0e9e
2 changed files with 2 additions and 2 deletions

View File

@ -2859,7 +2859,7 @@ class calendar_uiforms extends calendar_ui
{
$e = $s + $duration;
$end_date = $e-$daybegin > DAY_s ? lang(date('l',$e)).' '.date($this->common_prefs['dateformat'],$e).' ' : '';
$times[$s] = date($time_format,$s).' - '.$end_date.date($time_format,$e);
$times[Api\DateTime::to($s, Api\DateTime::ET2)] = date($time_format, $s) . ' - ' . $end_date . date($time_format, $e);
}
$sel_options[$n.'start'] = $times;
}

View File

@ -1708,7 +1708,7 @@ export class CalendarApp extends EgwApp
// Make the Id from selected button by checking the index
var selectedId = _widget.id.match(/^select\[([0-9])\]$/i)[1];
var sTime = <et2_date> this.et2.getWidgetById(selectedId+'start');
var sTime = <Et2Select><unknown>this.et2.getWidgetById(selectedId + 'start');
//check the parent window is still open before to try to access it
if (window.opener && sTime)