Author: jfthomps
Date: Thu Sep 11 20:21:59 2014
New Revision: 1624383
URL: http://svn.apache.org/r1624383
Log:
VCL-776 - rework resource code to have a base class for all resources and
inheriting classes for each resource type
blockallocations.php: made a change to getImages when doing the new resource
code that returns maxconcurrent as 0 if it is NULL in the database; modified
processBlockAllocationInput to not do concurrent check if maxconcurrent is 0
Modified:
vcl/trunk/web/.ht-inc/blockallocations.php
Modified: vcl/trunk/web/.ht-inc/blockallocations.php
URL:
http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/blockallocations.php?rev=1624383&r1=1624382&r2=1624383&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/blockallocations.php (original)
+++ vcl/trunk/web/.ht-inc/blockallocations.php Thu Sep 11 20:21:59 2014
@@ -3032,7 +3032,7 @@ function processBlockAllocationInput() {
if(! $err) {
$imgdata = getImages(0, $return['imageid']);
$concur = $imgdata[$return['imageid']]['maxconcurrent'];
- if(! is_null($concur) && $return['seats'] > $concur) {
+ if(! is_null($concur) && $concur != 0 && $return['seats'] >
$concur) {
$errmsg = "The selected image can only have $concur
concurrent "
. "reservations. Please reduce the number of
requested "
. "seats to $concur or less.";