Skip to content

Commit 6cf0ed3

Browse files
committed
Fixed: FS#639 - website alias domain not added
1 parent 5f0152e commit 6cf0ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function update($event_name,$data) {
204204
$new_parent_domain_id = intval($data["new"]["parent_domain_id"]);
205205

206206
// If the parent_domain_id has been chenged, we will have to update the old site as well.
207-
if($data["new"]["parent_domain_id"] != $data["old"]["parent_domain_id"]) {
207+
if($this->action == 'update' && $data["new"]["parent_domain_id"] != $data["old"]["parent_domain_id"]) {
208208
$tmp = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".$old_parent_domain_id." AND active = 'y'");
209209
$data["new"] = $tmp;
210210
$data["old"] = $tmp;

0 commit comments

Comments
 (0)