same for thetool OAIDs

This commit is contained in:
Frank Schubert
2024-10-09 17:46:04 +02:00
parent 50bfe05443
commit cb71af915f

View File

@@ -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);