Fix issue with transcripts that do not have associated rules
Some effects are synthetic and do not directly result from rules. Auditors: btrahan
This commit is contained in:
@@ -16,7 +16,9 @@ final class HeraldApplyTranscript extends Phobject {
|
||||
|
||||
$this->setAction($effect->getAction());
|
||||
$this->setTarget($effect->getTarget());
|
||||
$this->setRuleID($effect->getRule()->getID());
|
||||
if ($effect->getRule()) {
|
||||
$this->setRuleID($effect->getRule()->getID());
|
||||
}
|
||||
$this->setReason($effect->getReason());
|
||||
$this->setApplied($applied);
|
||||
$this->setAppliedReason($reason);
|
||||
|
||||
Reference in New Issue
Block a user