Ticket #2442 (closed malfunction: fixed)

Opened 18 months ago

Last modified 17 months ago

adding a domain purcesed via orderpanel will insert type of backup (_full_) witch is not allowed

Reported by: scitech Owned by: scitech
Priority: trivial Milestone: ispCP ω 1.0.7
Component: Frontend (GUI) Version: ispCP ω trunk
Severity: Easy Keywords:
Cc:

Description

adding a domain purcesed via orderpanel will insert type of backup (_full_) witch is not allowed.

patch:

Index: gui/include/ispCP/Update/Database.php
===================================================================
--- gui/include/ispCP/Update/Database.php	(revision 3238)
+++ gui/include/ispCP/Update/Database.php	(working copy)
@@ -1760,6 +1760,27 @@
 		");
 	}
 
+	/**
+	 * Fix ilegal value _full_ for allow backup
+	 *
+	 * adding a domain purcesed via orderpanel will insert 
+	 * type of backup (_full_) witch is not allowed
+	 *
+	 * @since r2988
+	 * @return array Sql statements to be performed
+	 */
+	protected function _databaseUpdate_39() {
+
+		return array("
+			UPDATE
+				`domain`
+			SET
+				`allowbackup` = 'full'
+			WHERE
+				`allowbackup` = '_full_'
+			;
+		");
+	}
 	/*
 	 * DO NOT CHANGE ANYTHING BELOW THIS LINE!
 	 */
Index: gui/reseller/orders_add.php
===================================================================
--- gui/reseller/orders_add.php	(revision 3238)
+++ gui/reseller/orders_add.php	(working copy)
@@ -126,6 +126,7 @@
 $php = preg_replace("/\_/", "", $php);
 $cgi = preg_replace("/\_/", "", $cgi);
 $dns = preg_replace("/\_/", "", $dns);
+$backup = preg_replace("/\_/", "", $backup);
 
 $password = passgen();
 $inpass = crypt_user_pass($password, true);

Change History

comment:1 Changed 18 months ago by benedikt

  • Milestone changed from Working to ispCP ω 1.0.7

comment:2 Changed 18 months ago by benedikt

  • Owner set to se2bass

comment:3 Changed 17 months ago by scitech

  • Owner changed from se2bass to scitech
  • Status changed from new to assigned

comment:4 Changed 17 months ago by scitech

  • Status changed from assigned to closed
  • Resolution set to fixed

comment:5 Changed 17 months ago by scitech

in r3264

Note: See TracTickets for help on using tickets.