summaryrefslogtreecommitdiffstats
path: root/settings/ajax/setquota.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-12-11 23:23:59 +0100
committerRobin Appelman <icewind1991@gmail.com>2011-12-11 23:23:59 +0100
commitb41ca8bacb8e1bdb9a28ab7e3e76b817262338d4 (patch)
treee18d2fa0028f0e075cd3171beb2d9cced1d5121e /settings/ajax/setquota.php
parent153029a1705fbeb16bd70b73f46550c0c902d0f4 (diff)
downloadnextcloud-server-b41ca8bacb8e1bdb9a28ab7e3e76b817262338d4.tar.gz
nextcloud-server-b41ca8bacb8e1bdb9a28ab7e3e76b817262338d4.zip
after editing a user quota, set the value of the quota field to how the server parsed the input, not the user input
this way the user can see when an invalid input is given
Diffstat (limited to 'settings/ajax/setquota.php')
-rw-r--r--settings/ajax/setquota.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/setquota.php b/settings/ajax/setquota.php
index edbf5b74516..5c07285cfca 100644
--- a/settings/ajax/setquota.php
+++ b/settings/ajax/setquota.php
@@ -10,6 +10,6 @@ $quota= OC_Helper::computerFileSize($_POST["quota"]);
// Return Success story
OC_Preferences::setValue($username,'files','quota',$quota);
-OC_JSON::success(array("data" => array( "username" => $username ,'quota'=>$quota)));
+OC_JSON::success(array("data" => array( "username" => $username ,'quota'=>OC_Helper::humanFileSize($quota))));
?>