From e9c14670261baa42be115513f2148b8394a7559d Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 11 Feb 2020 14:35:38 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B02746=20-=20Fix=20"Modify=20All"=20fatal?= =?UTF-8?q?=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/ormset.class.inc.php | 15 +++++++++++++++ core/ormtagset.class.inc.php | 23 +---------------------- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/core/ormset.class.inc.php b/core/ormset.class.inc.php index 24e638abc..41a41f7e2 100644 --- a/core/ormset.class.inc.php +++ b/core/ormset.class.inc.php @@ -29,6 +29,7 @@ class ormSet protected $sClass; // class of the field protected $sAttCode; // attcode of the field protected $aOriginalObjects = null; + protected $m_bDisplayPartial = false; /** * Object from the original set, minus the removed objects @@ -387,5 +388,19 @@ class ormSet return implode(', ', $this->GetValue()) === implode(', ', $other->GetValue()); } + /** + * @return bool + */ + public function DisplayPartial() + { + return $this->m_bDisplayPartial; + } + /** + * @param bool $m_bDisplayPartial + */ + public function SetDisplayPartial($m_bDisplayPartial) + { + $this->m_bDisplayPartial = $m_bDisplayPartial; + } } diff --git a/core/ormtagset.class.inc.php b/core/ormtagset.class.inc.php index b8f9a1481..ab6e4aa78 100644 --- a/core/ormtagset.class.inc.php +++ b/core/ormtagset.class.inc.php @@ -26,9 +26,6 @@ */ final class ormTagSet extends ormSet { - private $m_bDisplayPartial = false; - - /** * ormTagSet constructor. * @@ -557,22 +554,4 @@ final class ormTagSet extends ormSet { return TagSetFieldData::GetTagDataClassName($this->sClass, $this->sAttCode); } - - - /** - * @return bool - */ - public function DisplayPartial() - { - return $this->m_bDisplayPartial; - } - - /** - * @param bool $m_bDisplayPartial - */ - public function SetDisplayPartial($m_bDisplayPartial) - { - $this->m_bDisplayPartial = $m_bDisplayPartial; - } - -} \ No newline at end of file +}