Committer: iaskarov
LJSUP-6562: storage space add-on breaks if no size is enteredadded zero disk quota size check
U trunk/htdocs/admin/accounts/acctedit.bml
Modified: trunk/htdocs/admin/accounts/acctedit.bml =================================================================== --- trunk/htdocs/admin/accounts/acctedit.bml 2010-11-16 11:27:24 UTC (rev 9723) +++ trunk/htdocs/admin/accounts/acctedit.bml 2010-11-17 05:22:09 UTC (rev 9724) @@ -41,6 +41,9 @@ # 'notes' field is required return "<?h1 Error h1?><?p The 'notes' fields is required. Please enter a description of " . "the action you are performing, why it was done, etc. p?>" unless $POST{'notes'} || $LJ::IS_DEV_SERVER; + + # Zero Extra Storage Space Size + return "<?h1 Error h1?><?p The 'size' field value cannot be zero. p?>" unless $POST{'diskquota_exp'} eq $zerodate || $POST{'diskquota_size'}; unless ($rec) { $rec = eval {