Skip to content

Commit

Permalink
can filter on object properties
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Oct 16, 2024
1 parent 6152d2e commit f0f8bc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/class/extrafields.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ public function showInputField($key, $value, $moreparam = '', $keysuffix = '', $
}
// 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
Expand All @@ -1478,7 +1478,7 @@ public function showInputField($key, $value, $moreparam = '', $keysuffix = '', $
} else {
$sqlwhere .= ' WHERE 1=1';
}
print $sqlwhere;

// Add Usf filter on second line
/*
if ($Usf) {
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/upload_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
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
Expand Down

0 comments on commit f0f8bc5

Please sign in to comment.