diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-01-13 11:01:17 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-01-13 11:01:17 +0100 |
commit | d1382aecb2b3439a34869221ddab8018c511f7e6 (patch) | |
tree | 8975e5f37099e04ad3b9492334a99c7d4df8058a /program/steps/settings/save_identity.inc | |
parent | 5a84736e538fe39910ee59f8a0d704f38c9ec24a (diff) |
Fix so "set as default" option is hidden if identities_level > 1 (#1490226)
Diffstat (limited to 'program/steps/settings/save_identity.inc')
-rw-r--r-- | program/steps/settings/save_identity.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/program/steps/settings/save_identity.inc b/program/steps/settings/save_identity.inc index de0c84c91..ac7ef8708 100644 --- a/program/steps/settings/save_identity.inc +++ b/program/steps/settings/save_identity.inc @@ -49,6 +49,11 @@ foreach ($a_boolean_cols as $col) { } } +// make the identity a "default" if only one identity is allowed +if (IDENTITIES_LEVEL > 1) { + $save_data['standard'] = 1; +} + // unset email address if user has no rights to change it if (IDENTITIES_LEVEL == 1 || IDENTITIES_LEVEL == 3) { unset($save_data['email']); |