From 5726f9f81a36fabac67cfc23ee34d1665404d8b2 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Thu, 16 Nov 2023 16:31:47 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B06960=20-=20Fix=20\MFDocument::GetNodes()?= =?UTF-8?q?=20adding=20a=20predicate=20on=20last=20expression=20only=20ins?= =?UTF-8?q?tead=20of=20the=20whole=20XPath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup/modelfactory.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/modelfactory.class.inc.php b/setup/modelfactory.class.inc.php index acea63e85..0181eaa27 100644 --- a/setup/modelfactory.class.inc.php +++ b/setup/modelfactory.class.inc.php @@ -2486,7 +2486,7 @@ class MFDocument extends \Combodo\iTop\DesignDocument if ($bSafe) { - $sXPath .= "[not(@_alteration) or @_alteration!='removed']"; + $sXPath = "($sXPath)[not(@_alteration) or @_alteration!='removed']"; } if (is_null($oContextNode))