changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[ljcom] r9724: LJSUP-6562: storage space add-on breaks ...

Committer: iaskarov
LJSUP-6562: storage space add-on breaks if no size is entered
added 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 {

Tags: bml, changelog_bot, ljcom
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments