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 31e0327b0a
commit c00dead2c7

View File

@@ -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))