Ticket #2442 (closed malfunction: fixed)
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
Note: See
TracTickets for help on using
tickets.


