From 2f6a1817b2c057e4e63145441ccd6019c885defe Mon Sep 17 00:00:00 2001 From: Rida Date: Wed, 30 Nov 2022 15:51:15 -0500 Subject: [PATCH] [behavioural_qc] Fix critical error --- modules/behavioural_qc/php/models/behaviouraldto.class.inc | 4 ++-- modules/behavioural_qc/php/models/conflictsdto.class.inc | 4 ++-- modules/behavioural_qc/php/models/incompletedto.class.inc | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/behavioural_qc/php/models/behaviouraldto.class.inc b/modules/behavioural_qc/php/models/behaviouraldto.class.inc index 891aaa1f69e..da33721c0af 100644 --- a/modules/behavioural_qc/php/models/behaviouraldto.class.inc +++ b/modules/behavioural_qc/php/models/behaviouraldto.class.inc @@ -126,7 +126,7 @@ class BehaviouralDTO implements \LORIS\Data\DataInstance, */ public function getCenterID(): \CenterID { - return new \CenterID($this->_site); + return new \CenterID(strval($this->_site)); } /** @@ -137,7 +137,7 @@ class BehaviouralDTO implements \LORIS\Data\DataInstance, */ public function getProjectID(): \ProjectID { - return new \ProjectID($this->_project); + return new \ProjectID(strval($this->_project)); } /** diff --git a/modules/behavioural_qc/php/models/conflictsdto.class.inc b/modules/behavioural_qc/php/models/conflictsdto.class.inc index cb108b86056..bf1887f1c31 100644 --- a/modules/behavioural_qc/php/models/conflictsdto.class.inc +++ b/modules/behavioural_qc/php/models/conflictsdto.class.inc @@ -112,7 +112,7 @@ class ConflictsDTO implements \LORIS\Data\DataInstance, */ public function getCenterID(): \CenterID { - return new \CenterID($this->_site); + return new \CenterID(strval($this->_site)); } /** @@ -123,7 +123,7 @@ class ConflictsDTO implements \LORIS\Data\DataInstance, */ public function getProjectID(): \ProjectID { - return new \ProjectID($this->_project); + return new \ProjectID(strval($this->_project)); } /** diff --git a/modules/behavioural_qc/php/models/incompletedto.class.inc b/modules/behavioural_qc/php/models/incompletedto.class.inc index 7b837e6c5c2..dea8b8861f6 100644 --- a/modules/behavioural_qc/php/models/incompletedto.class.inc +++ b/modules/behavioural_qc/php/models/incompletedto.class.inc @@ -112,7 +112,7 @@ class IncompleteDTO implements \LORIS\Data\DataInstance, */ public function getCenterID(): \CenterID { - return new \CenterID($this->_site); + return new \CenterID(strval($this->_site)); } /** @@ -123,7 +123,7 @@ class IncompleteDTO implements \LORIS\Data\DataInstance, */ public function getProjectID(): \ProjectID { - return new \ProjectID($this->_project); + return new \ProjectID(strval($this->_project)); } /**