Commit Graph

89 Commits

Author SHA1 Message Date
ralf
ddf3127140 WIP allow to place custom-fields in tabs: need to explicit content attribute, as it no longer defaults to value of id attribute
fixed preferences of apps with a single tab only are broken / not shown, e.g. notifications or timesheet
2024-03-30 08:31:08 +02:00
ralf
5352972e2a WIP allowing to speard custom fields optionally to dynamic generated tabs 2024-03-21 10:28:27 +02:00
ralf
c4541f75a2 fix default-alarm(s) in calendar could not be removed:
- et2-date-duration with emptyNot0 attribute set, was still regarding "" as 0
- preferences class was not recognising change from 0.0 to "" (Array comparison with == vs. array_diff_assoc())
- preferences_settings was not updating $GLOBALS[egw_info][user][preferences], which was used in calendar settings hook
2024-02-13 10:32:01 +02:00
nathan
9b6a14f2d8 Preferences: Fix some default values were not shown correctly
Preferences that had options with label & value keys were done by index instead of value
2023-06-15 10:11:04 -06:00
hadi
68351ffb37 Fix demonstrated default value is shown as raw value instead of its relevant label 2023-06-05 16:00:33 +02:00
hadi
0ad326a507 Introduce new hooks boolean param called 'reload' in order to force main framework to refresh after saving preferences 2023-03-16 16:25:58 +01:00
Hadi Nategh
cc885c343f Add textsize preference into required to reload list 2023-01-30 16:07:21 +01:00
nathan
9aea7be231 Avoid wiping out keys of numeric preference select options with array_merge()
Fixed by changing them from key => value to Et2Select's preferred [key=>string, value=>string] format first.

This fixes wrong select option values for many preferences
2023-01-11 14:18:01 -07:00
nathan
f332b7bba5 Fully remove "tabs" attribute for tabbox, it overwrites the internal tabs collection.
Even checking for it sets 'tabs' attribute to null.  Use "extraTabs" instead.
2023-01-11 13:21:01 -07:00
nathan
f0c3d819b8 Use array_merge instead of + to avoid losing Europe
Fixes European timezones were missing in preferences
2023-01-06 09:21:45 -07:00
nathan
2748376f6f Make sure default option is first 2022-12-20 15:44:48 -07:00
nathan
19bae0054a Calendar: Fix notification messages were no longer multi-line textboxes 2022-10-18 13:30:22 -06:00
nathan
b43dd8f2c3 Fix infinite reload in preference dialog when switching to common preferences 2022-10-11 13:14:55 -06:00
Hadi Nategh
786fe5ff69 Add app icons into pref's selectbox and fix some styling 2022-08-31 14:14:53 +02:00
ralf
bb28500ef7 fix mail preferences could not be saved 2022-08-05 20:20:46 +02:00
ralf
f79c57f048 fix InfoLog preferences shows wired looking categories --> fixed by using a select-cat 2022-07-19 18:28:44 +02:00
ralf
bec95a4a9d et2-select-tab widget to fix common preferences not storing and some fixes 2022-07-19 15:17:43 +02:00
nathan
96354be5ec Get text editor toolbar preference working with webcomponents 2022-07-14 13:22:48 -06:00
nathan
f8f7d1621e Preferences: Get preferences mostly displaying again
There's still something wrong validation.
2022-07-13 10:52:11 -06:00
Ralf Becker
c53551ab2b fix PHP 8.0 error: Unsupported operand types: null + array 2021-10-20 15:03:41 +02:00
Ralf Becker
d2c85cfe86 fix PHP 8.0 errors: key(): Argument #1 ($array) must be of type array, null given
guarding key() from calling with null eg. $button = key($content['button']) --> key($content['button'] ?? []) or check before !empty($content['button'])
2021-10-06 16:08:32 +02:00
Ralf Becker
33e88d25ae * Preferences: use push to ask every affected client to reload preferences, if affected 2020-07-31 09:47:49 +02:00
nathangray
77a0076a45 Preferences: Fix multiselect settings had new values as arrays, old values as strings, which messed up history 2019-11-01 11:10:01 -06:00
nathangray
6d54365f4f Preferences - Fix multiselect forced preferences not getting cleared out when empty 2019-06-17 15:48:38 -06:00
nathangray
0453a43194 Keep documentation from preference changes when opened from top bar 2019-04-10 11:19:41 -06:00
Ralf Becker
4be62b63ee labels, options and widgets for admin_cmd_preferences 2019-03-20 18:15:02 +01:00
nathangray
d805e9f467 Stop using deprecated each(), using foreach(), key() or current() instead 2019-02-12 14:13:45 -07:00
nathangray
00c11c1a0c Preferences - Fix sections missing under some circumstances 2019-01-10 15:54:04 -07:00
Ralf Becker
cba3e713b4 fix saving of group preferences 2019-01-10 15:08:11 +01:00
Ralf Becker
620e20f0e4 fix admin_cmd_user_preferences to use values given and not global preferences object 2018-08-23 15:25:49 +02:00
Hadi Nategh
abaf61b72f Remove no longer used argument 2018-08-22 12:29:46 +02:00
Hadi Nategh
886bc915cf Preserve the old values to be used in values comparison 2018-08-22 12:27:17 +02:00
Hadi Nategh
563a356eaa Implement admin_cmd for preferences 2018-08-21 14:42:56 +02:00
Hadi Nategh
36726c7400 Add new attributes into core widget in order to be able to set widget->type attributes in preferences 2018-06-27 17:40:26 +02:00
Ralf Becker
b7a948bdff show a default preference of 0 (was hidden before, but used!) 2017-10-10 18:48:45 +02:00
Hadi Nategh
0a8e209a31 Fix preferences tabs getting duplicated, introduced by commit 2707b1da0b 2017-01-23 16:01:55 +01:00
Hadi Nategh
a66b34c8fc Disable autocomplete_url for taglists in hooks with no sel_options 2017-01-13 15:13:44 +01:00
Hadi Nategh
2707b1da0b Add no_sel_options to preferences settings in order to be able to use taglist with no sel_options 2017-01-12 12:27:46 +01:00
Hadi Nategh
cf7ce2c27f * Calendar: Fix saving preferences place-holders in all languages except en breaks their values in database 2016-09-19 11:07:18 +02:00
Ralf Becker
b077423223 get "integer" type settings working, by removing not used size attribute from template causing a 0 size input for integer 2016-07-29 16:01:26 +02:00
Ralf Becker
fa9cd4766f use new api for preferences 2016-04-30 17:16:36 +00:00
Hadi Nategh
bbd06f1cbe Fix multiline textboxes in preferences dialog are not shown due to the lack of width 2015-02-26 15:03:20 +00:00
Ralf Becker
3dee5e9a56 reload framework if (custom-)template-color changes 2014-12-18 11:02:42 +00:00
Ralf Becker
2a426ca420 reload framework when theme changes (eg. to mobile) 2014-11-27 08:13:26 +00:00
Ralf Becker
5391fd1674 only show apps available to user 2014-10-21 09:15:42 +00:00
Ralf Becker
19651fcb9b remove wrong settings definition, causing an illegal string offset in preferences 2014-07-24 09:53:04 +00:00
Ralf Becker
61dab25375 make account_id available for preferences hook 2014-07-18 11:46:10 +00:00
Ralf Becker
21bcc81b21 * Preferences: non-admins were allowed to changed default, forced or group preferences 2014-07-13 10:27:46 +00:00
Ralf Becker
0246dec560 update client-side preferences, when preferences get saved 2014-06-06 12:21:31 +00:00
Ralf Becker
b308b0027d changed default alarms pref to single "date-duration" pref (in minutes), fixed date-duration to have for prefs reasonable default of data_format=m,display_format=mhd,hours_per_day=24,empty_not_0=1 2014-06-06 11:59:20 +00:00