Repository navigation
Fix "Other" value handling in quota dropdown in users page - #25253
Conversation
Prevents "other" value to be deleted. When appending custom value, put it above the "other" entry.
|
By analyzing the blame information on this pull request, we identified @MorrisJobke, @ringmaster and @blizzz to be potential reviewers |
|
@SergioBertolinSG ok, I added some crude validation to make you happy. Please try again. |
|
A couple of remaining cases: |
|
I didn't intend this PR to be about validation, but ok let me try and make the validation slightly better. |
|
I think just avoiding those 'B' values and not allow number/0 and XX,XX format can be enough for now. |
|
👍 |
|
@SergioBertolinSG the problem is as follows: The user can enter values like "123", "123MB" or "123 MB". So far I just used But now if you type "1/0" it also passes the test because it starts with a number. If we want to make it accurate, we need to develop a regexp that matches the expected formats. I wanted to avoid going that far in this quick fix. Also I don't think people would enter such strange values by mistake. |
|
Float numbers using comma are very likely to be introduced by people using translated setups. |
* Revert "Merge pull request #25240 from owncloud/remove-svg" This reverts commit 8b8d2b6, reversing changes made to a35747b. * Revert "Merge pull request #25253 from owncloud/users-fixotherquotadropdown" This reverts commit a35747b, reversing changes made to a573b68. * Revert "Merge pull request #25314 from owncloud/files_external-backends-config" This reverts commit a573b68, reversing changes made to 8147eef. * Revert "Add all properties while creating a subscription (#25318)" This reverts commit aaf4c30. * Revert "Merge pull request #25276 from owncloud/delete-own-session-token" This reverts commit e42ce62, reversing changes made to aaf4c30. * Revert "Merge pull request #25262 from owncloud/fed-sharing-error" This reverts commit 027715f, reversing changes made to e42ce62.
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |

Prevents "other" value to be deleted.
When appending custom value, put it above the "other" entry.
Fixes #24664
Please review @owncloud/javascript @icewind1991 @guruz @georgehrke @SergioBertolinSG @humblemumble