N°6960 - Fix \MFDocument::GetNodes() adding a predicate on last expression only instead of the whole XPath

This commit is contained in:
Molkobain
2023-11-16 16:31:47 +01:00
parent 85f66f5e0c
commit 5726f9f81a

View File

@@ -2486,7 +2486,7 @@ class MFDocument extends \Combodo\iTop\DesignDocument
if ($bSafe) if ($bSafe)
{ {
$sXPath .= "[not(@_alteration) or @_alteration!='removed']"; $sXPath = "($sXPath)[not(@_alteration) or @_alteration!='removed']";
} }
if (is_null($oContextNode)) if (is_null($oContextNode))