mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 18:33:39 +01:00
Reapply "fix default-alarm(s) in calendar could not be removed:"
This reverts commit 94c23e709a
.
This commit is contained in:
parent
ee7dc17b4b
commit
24d19ec8c1
@ -359,7 +359,7 @@ export class Et2DateDuration extends Et2InputWidget(FormControlMixin(LitElement)
|
||||
|
||||
set value(_value)
|
||||
{
|
||||
this._display = this._convert_to_display(_value == "" ? 0 : parseFloat(_value));
|
||||
this._display = this._convert_to_display(this.emptyNot0 && ""+_value === "" ? '' : parseFloat(_value));
|
||||
this.requestUpdate();
|
||||
}
|
||||
|
||||
|
@ -891,7 +891,7 @@ class Preferences
|
||||
foreach($prefs as $app => $value)
|
||||
{
|
||||
// check if app preferences have changed, if not no need to save them
|
||||
if ($old_prefs && $old_prefs[$app] == $value) continue;
|
||||
if ($old_prefs && !array_diff_assoc($old_prefs[$app], $value)) continue;
|
||||
|
||||
if (!$changed++) $this->db->transaction_begin();
|
||||
|
||||
|
@ -401,6 +401,11 @@ class preferences_settings
|
||||
{
|
||||
Egw::invalidate_session_cache();
|
||||
}
|
||||
// update $GLOBALS['egw_info']['user']['preferences'] as some hooks called use that can return or set old values (e.g. calendar default-alarm(-wholeday))
|
||||
if ($type === 'user' && $GLOBALS['egw']->preferences->get_account_id() == $GLOBALS['egw_info']['user']['account_id'])
|
||||
{
|
||||
$GLOBALS['egw_info']['user']['preferences'] = $GLOBALS['egw']->preferences->data;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user