-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
show input fields if they are not empty but disable them in global scale mode #5287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@schiessle, thanks for your PR! By analyzing the history of the files in this pull request, we identified @LukasReschke, @ChristophWurst and @icewind1991 to be potential reviewers. |
settings/templates/personal.php
Outdated
| </h2> | ||
| <input type="tel" id="phone" name="phone" | ||
| value="<?php p($_['phone']) ?>" | ||
| <input type="tel" id="phone" name="phone" <?php if(!$_['lookupServerUploadEnabled']) p('disabled="1"'); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean print_unescaped, or do you want disabled="1"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it works also this way... 😉 But I will fix it...
…ale mode Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
3271c3d to
f5731e1
Compare
Codecov Report
@@ Coverage Diff @@
## master #5287 +/- ##
============================================
+ Coverage 54.16% 54.16% +<.01%
Complexity 22311 22311
============================================
Files 1380 1380
Lines 85406 85406
Branches 1321 1321
============================================
+ Hits 46257 46260 +3
+ Misses 39149 39146 -3
|
MorrisJobke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@MorrisJobke now they should all look the same |
…ut fields Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
0735d06 to
1ad4268
Compare
MorrisJobke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍

In global scale mode we don't allow to enter additional user information used for the lookup sever but we should still show the user existing data stored.
fix #5275
Steps to test:
'gs.enabled' => truein the config.php'gs.enabled' => falsein the config.php'gs.enabled' => truein the config.php