can filter on object properties

This commit is contained in:
Frédéric FRANCE 2024-10-16 10:53:27 +02:00
parent 6152d2e885
commit f0f8bc595e
No known key found for this signature in database
GPG key ID: C06E4A9656127239
2 changed files with 3 additions and 3 deletions

View file

@ -1456,7 +1456,7 @@ class ExtraFields
}
// can use MODE request (list or view)
if (strpos($InfoFieldList[4], '$MODE$') !== false) {
$InfoFieldList[4] = str_replace('$MODE$', $mode, $InfoFieldList[4]);
$InfoFieldList[4] = str_replace('$MODE$', (string) $mode, $InfoFieldList[4]);
}
// current object id can be use into filter
@ -1478,7 +1478,7 @@ class ExtraFields
} else {
$sqlwhere .= ' WHERE 1=1';
}
print $sqlwhere;
// Add Usf filter on second line
/*
if ($Usf) {

View file

@ -97,7 +97,7 @@ $arrayofcss = array();
llxHeader('', $title, $help_url, '', 0, 0, $arrayofjs, $arrayofcss, '', 'mod-upload page-card');
//top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
print load_fiche_titre('', '', '', 0, '', 0, '<h2>'.$title.'</h2>');
print load_fiche_titre('', '', '', 0, '', '', '<h2>'.$title.'</h2>');
// Instantiate hooks of thirdparty module