Infolog: Put refresh_opener() calls back

It gives double updates, but people with no push server still get to see their changes.
This commit is contained in:
nathangray 2020-07-23 14:03:13 -06:00
parent 25ba1cf6fb
commit 56dbbf406f

View File

@ -1826,7 +1826,7 @@ class infolog_ui
$GLOBALS['egw']->preferences->add('infolog','preferred_type',$content['info_type']); $GLOBALS['egw']->preferences->add('infolog','preferred_type',$content['info_type']);
$GLOBALS['egw']->preferences->save_repository(false,'user',false); $GLOBALS['egw']->preferences->save_repository(false,'user',false);
$content['msg'] = lang('InfoLog entry saved'); $content['msg'] = lang('InfoLog entry saved');
Framework::message($content['msg']); Framework::refresh_opener($content['msg'],'infolog',$info_id,$operation);
} }
$content['tabs'] = $active_tab; $content['tabs'] = $active_tab;
@ -1881,12 +1881,12 @@ class infolog_ui
); );
if (!($content['msg'] = $this->delete($info_id,$referer,'edit'))) return; // checks ACL first if (!($content['msg'] = $this->delete($info_id,$referer,'edit'))) return; // checks ACL first
Framework::message($content['msg']); Framework::refresh_opener($content['msg'],'infolog',$info_id,'delete');
} }
// called again after delete confirmation dialog // called again after delete confirmation dialog
elseif ($button == 'deleted' && $content['msg']) elseif ($button == 'deleted' && $content['msg'])
{ {
Framework::message($content['msg']); Framework::refresh_opener($content['msg'],'infolog',$info_id,'delete');
} }
if ($button == 'save' || $button == 'cancel' || $button == 'delete' || $button == 'deleted') if ($button == 'save' || $button == 'cancel' || $button == 'delete' || $button == 'deleted')
{ {