2
0
forked from Wavyzz/dolibarr

fix usf filters (#31897)

This commit is contained in:
Frédéric FRANCE
2024-11-15 23:45:24 +01:00
committed by GitHub
parent 2cc02024f1
commit e0562817d6
27 changed files with 37 additions and 37 deletions

View File

@@ -126,7 +126,7 @@ if ($id > 0 || !empty($ref)) {
// Define a complementary filter for search of next/prev ref.
if (!$user->hasRight('projet', 'all', 'lire')) {
$objectsListId = $object->getProjectsAuthorizedForUser($user, 0, 0);
$object->next_prev_filter = "rowid IN (".$db->sanitize(count($objectsListId) ? implode(',', array_keys($objectsListId)) : '0').")";
$object->next_prev_filter = "rowid:IN:(".$db->sanitize(count($objectsListId) ? implode(',', array_keys($objectsListId)) : '0').")";
}
dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref);