You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2010/12/01 19:50:32 UTC

svn commit: r1041129 - /incubator/vcl/trunk/web/.ht-inc/vm.php

Author: jfthomps
Date: Wed Dec  1 18:50:31 2010
New Revision: 1041129

URL: http://svn.apache.org/viewvc?rev=1041129&view=rev
Log:
VCL-395
cannot add new vmprofiles

applied patch submitted by David Hutchins

-modified AJnewProfile - changed query to include vmtypeid and imageid

Modified:
    incubator/vcl/trunk/web/.ht-inc/vm.php

Modified: incubator/vcl/trunk/web/.ht-inc/vm.php
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/vm.php?rev=1041129&r1=1041128&r2=1041129&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/vm.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/vm.php Wed Dec  1 18:50:31 2010
@@ -858,7 +858,7 @@ function AJnewProfile() {
 		sendJSON(array('failed' => 'exists'));
 		return;
 	}
-	$query = "INSERT INTO vmprofile (profilename) VALUES ('$newprofile')";
+	$query = "INSERT INTO vmprofile (profilename, vmtypeid, imageid) VALUES ('$newprofile',1,4)";
 	doQuery($query, 101);
 	$qh = doQuery("SELECT LAST_INSERT_ID() FROM vmprofile", 101);
 	$row = mysql_fetch_row($qh);