From 7847728e5255e1a73a3c690b84e6425968b1ba9d Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 22 Nov 2023 18:15:06 +1100 Subject: [PATCH] Remove autohold on successful poll --- app/Classes/Protocol.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Classes/Protocol.php b/app/Classes/Protocol.php index f7c0186..d24636f 100644 --- a/app/Classes/Protocol.php +++ b/app/Classes/Protocol.php @@ -450,6 +450,12 @@ abstract class Protocol $slo->originate = $this->originate; $so->logs()->save($slo); + + // If we are autohold, then remove that + if ($so->autohold) { + $so->autohold = FALSE; + $so->save(); + } } // @todo Optional after session execution event