FIX regex for include or exclude categories in full arbo

This commit is contained in:
VESSILLER 2020-01-28 17:13:09 +01:00
parent 751247d3f3
commit 8af5d87e80

View File

@ -1080,7 +1080,7 @@ class Categorie extends CommonObject
// Include or exclude leaf including $markafterid from tree // Include or exclude leaf including $markafterid from tree
if (count($markafterid) > 0) if (count($markafterid) > 0)
{ {
$keyfiltercatid = implode('|', $markafterid); $keyfiltercatid = '(' . implode('|', $markafterid) . ')';
//print "Look to discard category ".$markafterid."\n"; //print "Look to discard category ".$markafterid."\n";
$keyfilter1 = '^' . $keyfiltercatid . '$'; $keyfilter1 = '^' . $keyfiltercatid . '$';