Termination::getPop() uses ist_pop_id before pop_id

This commit is contained in:
Frank Schubert
2022-02-22 18:54:46 +01:00
parent e7db364ee5
commit d8d3d0d43e

View File

@@ -153,10 +153,16 @@ class Termination extends mfBaseModel {
}
public function getPop() {
$pop_id = $this->getWorkflowvalue('pop_id');
$pop_id = $this->getWorkflowvalue('ist_pop_id');
if(!$pop_id) {
$pop_id = $this->getWorkflowvalue('pop_id');
return null;
}
if(!$pop_id) {
return null;
}
return new Pop($pop_id);
}