This is an automated email from the ASF dual-hosted git repository.

jfthomps pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/vcl.git

commit 77abaa67fbaa5249e460013dcb1c077b580c93be
Author: Josh Thompson <jftho...@ncsu.edu>
AuthorDate: Thu Feb 15 16:18:04 2024 -0500

    VCL-1139 - increase max allowed reservation duration from 20 weeks to 30 
weeks
    
    image.php: modified addEditDialogHTML and validateResourceData: changed 
argument passed to getReservationLengths from 201600 to 302400
---
 web/.ht-inc/image.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/.ht-inc/image.php b/web/.ht-inc/image.php
index 947a49d1..38c3932a 100644
--- a/web/.ht-inc/image.php
+++ b/web/.ht-inc/image.php
@@ -435,7 +435,7 @@ class Image extends Resource {
                $h .= "</div>\n";
                # Max reservation time
                $tmp = array('0' => 'Default for User');
-               $lengths = $tmp + getReservationLengths(201600);
+               $lengths = $tmp + getReservationLengths(302400);
                $h .= labeledFormItem('maxinitialtime', i('Max Reservation 
Duration'), 'select', $lengths);
                # sysprep
                if($add) {
@@ -1754,7 +1754,7 @@ class Image extends Resource {
                        $return['error'] = 1;
                        $errormsg[] = i("Set Computer Hostname must be Yes or 
No");
                }
-               if($return['maxinitialtime'] < 0 || $return['maxinitialtime'] > 
201600) {
+               if($return['maxinitialtime'] < 0 || $return['maxinitialtime'] > 
302400) {
                        $return['error'] = 1;
                        $errormsg[] = i("Invalid Max Reservation Duration 
selected");
                }

Reply via email to