From 208d7ee7ba9f40568d375d91ca75f14c75b8abd1 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 14 Jan 2020 10:27:55 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B02093=20-=20ApplyStimulus=20return=20true?= =?UTF-8?q?=20when=20stimuli=20is=20not=20applicable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/dbobject.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/dbobject.class.php b/core/dbobject.class.php index 859a80ea4..74389851f 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -3674,7 +3674,8 @@ abstract class DBObject implements iDisplay if (!array_key_exists($sStimulusCode, $aStateTransitions)) { // This simulus has no effect in the current state... do nothing - return true; + IssueLog::Error(get_class($this).": Transition $sStimulusCode is not allowed in ".$this->Get($sStateAttCode)); + return false; } $aTransitionDef = $aStateTransitions[$sStimulusCode];