Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 17, 2024
1 parent 3114d1d commit 7ea04ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 0 additions & 4 deletions htdocs/intracommreport/class/intracommreport.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -772,10 +772,6 @@ public function getKanbanView($option = '', $arraydata = null)
if (property_exists($this, 'thirdparty') && is_object($this->thirdparty)) {
$return .= '<br><div class="info-box-ref tdoverflowmax150">'.$this->thirdparty->getNomUrl(1).'</div>';
}
if (property_exists($this, 'amount')) {
$return .= '<br>';
$return .= '<span class="info-box-label amount">'.price($this->amount, 0, $langs, 1, -1, -1, $conf->currency).'</span>';
}
if (method_exists($this, 'getLibStatut')) {
$return .= '<br><div class="info-box-status">'.$this->getLibStatut(3).'</div>';
}
Expand Down
6 changes: 4 additions & 2 deletions htdocs/intracommreport/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@
}
}

$fieldstosearchall = array();
$fieldstosearchall = array(
't.ref' => "Ref",
);

// Initialize a technical object to manage hooks. Note that conf->hooks_modules contains array of hooks
$object = new IntracommReport($db);
Expand Down Expand Up @@ -535,7 +537,7 @@
$setupstring .= $key."=".$val.";";
}
print '<!-- Search done like if INTRACOMMREPORT_QUICKSEARCH_ON_FIELDS = '.$setupstring.' -->'."\n";
print '<div class="divsearchfieldfilter">'.$langs->trans("FilterOnInto", $search_all).join(', ', $fieldstosearchall).'</div>'."\n";
print '<div class="divsearchfieldfilter">'.$langs->trans("FilterOnInto", $search_all).implode(', ', $fieldstosearchall).'</div>'."\n";
}

$moreforfilter = '';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/modulebuilder/template/myobject_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@
$setupstring .= $key."=".$val.";";
}
print '<!-- Search done like if MYOBJECT_QUICKSEARCH_ON_FIELDS = '.$setupstring.' -->'."\n";
print '<div class="divsearchfieldfilter">'.$langs->trans("FilterOnInto", $search_all).join(', ', $fieldstosearchall).'</div>'."\n";
print '<div class="divsearchfieldfilter">'.$langs->trans("FilterOnInto", $search_all).implode(', ', $fieldstosearchall).'</div>'."\n";
}

$moreforfilter = '';
Expand Down

0 comments on commit 7ea04ab

Please sign in to comment.