diff --git a/application/Preorder/Preorder.php b/application/Preorder/Preorder.php index fd19c7f50..28aa2687a 100644 --- a/application/Preorder/Preorder.php +++ b/application/Preorder/Preorder.php @@ -352,6 +352,11 @@ class Preorder extends mfBaseModel { $current_oaid = OpenAccessIdModel::getFirstOaid($this->oaid); if($current_oaid) { $this->log->warning("OAID of Preorder " . $this->id . " should be thetool, but is OFAA"); + } else { + if($wohneinheit->oaid != $this->oaid) { + $this->oaid = $wohneinheit->oaid; + return true; + } } } elseif($campaign->oaid_origin == "ofaa") { $current_oaid = OpenAccessIdModel::getFirstOaid($this->oaid);