Author: jfthomps
Date: Fri Aug 14 13:50:28 2015
New Revision: 1695911
URL: http://svn.apache.org/r1695911
Log:
VCL-872 - Computer notes not saved when changing state from vmhostinuse to
maintenance
computer.php: modified AJsubmitCompStateChange: added count($changenow) to
conditional that checks to see if new state is maintenance and if there are any
computers in $changeasap or $noaction
Modified:
vcl/trunk/web/.ht-inc/computer.php
Modified: vcl/trunk/web/.ht-inc/computer.php
URL:
http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/computer.php?rev=1695911&r1=1695910&r2=1695911&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/computer.php (original)
+++ vcl/trunk/web/.ht-inc/computer.php Fri Aug 14 13:50:28 2015
@@ -3769,7 +3769,7 @@ class Computer extends Resource {
$changenow[] = $compid;
cleanSemaphore();
}
- if($newstateid == 10 && (count($noaction) ||
count($changeasap))) {
+ if($newstateid == 10 && (count($noaction) ||
count($changeasap) || count($changenow))) {
$comparr = array_merge($noaction, $changeasap);
$allids = implode(',', $comparr);
if(count($vmwithhost))