Skip to content

Commit

Permalink
fix translations
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Nov 14, 2024
1 parent aa7a746 commit 33e706e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/categories/viewcat.php
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@
print '<table class="noborder centpercent">';
print '<tr class="liste_titre"><td>';
print $langs->trans("AddFichinterIntoCategory").' &nbsp;';
print $formfichinter->select_interventions(0, 0, 'elemid');
print $formfichinter->select_interventions(-1, 0, 'elemid');
print '<input type="submit" class="button buttongen" value="'.$langs->trans("ClassifyInCategory").'"></td>';
print '</tr>';
print '</table>';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/class/html.formintervention.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function select_interventions($socid = -1, $selected = 0, $htmlname = 'in
$sql = "SELECT f.rowid, f.ref, f.fk_soc, f.fk_statut";
$sql .= " FROM ".$this->db->prefix()."fichinter as f";
$sql .= " WHERE f.entity = ".$conf->entity;
if ($socid != '') {
if ($socid >= 0) {
if ($socid == '0') {
$sql .= " AND (f.fk_soc = 0 OR f.fk_soc IS NULL)";
} else {
Expand Down

0 comments on commit 33e706e

Please sign in to comment.