diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-02-01 03:34:36 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-04-23 11:44:42 +0200 |
commit | da84ed7d4c2d05b4f9841d345d3a47dfe673ea7a (patch) | |
tree | 91f1bc73adc56ef06155c21143925f818ea2303a /apps/settings/templates | |
parent | 7159a708947e29f963b634aa3af6ab5354f6bed4 (diff) | |
download | nextcloud-server-da84ed7d4c2d05b4f9841d345d3a47dfe673ea7a.tar.gz nextcloud-server-da84ed7d4c2d05b4f9841d345d3a47dfe673ea7a.zip |
Fix active scope not visible in the menu if excluded
Depending on some settings (for example, if lookup server upload is
disabled) some items can be hidden in the scope menu. However, if the
user selected an scope in the past once the settings were changed the
scope was no longer visible in the menu. Now the active scope will be
always visible in the menu, although if it is an excluded scope it will
be disabled. Selecting any other scope will then hide the excluded and
no longer active one.
When upload to the lookup server is disabled the scope menu was hidden
for display name and email in the personal information settings; now the
menu will be always shown to enable the above described behaviour.
Note that the menu will be shown even if there is a single available
scope so the user can read its description.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/settings/templates')
-rw-r--r-- | apps/settings/templates/settings/personal/personal.info.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/settings/templates/settings/personal/personal.info.php b/apps/settings/templates/settings/personal/personal.info.php index 8aa7b195ff5..6f8516e6437 100644 --- a/apps/settings/templates/settings/personal/personal.info.php +++ b/apps/settings/templates/settings/personal/personal.info.php @@ -122,9 +122,7 @@ script('settings', [ <?php } ?> <span class="icon-checkmark hidden"></span> <span class="icon-error hidden" ></span> - <?php if ($_['lookupServerUploadEnabled']) { ?> <input type="hidden" id="displaynamescope" value="<?php p($_['displayNameScope']) ?>"> - <?php } ?> </form> </div> <div class="personal-settings-setting-box"> @@ -172,9 +170,7 @@ script('settings', [ <?php if ($_['displayNameChangeSupported']) { ?> <em><?php p($l->t('For password reset and notifications')); ?></em> <?php } ?> - <?php if ($_['lookupServerUploadEnabled']) { ?> - <input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>"> - <?php } ?> + <input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>"> </form> </div> <div class="personal-settings-setting-box"> |