Skip to content

Commit

Permalink
Fix : Company name should not be empty if socid param declared (#29545)
Browse files Browse the repository at this point in the history
* Company name should not be empty if socid param declared

#29544

* tabs instead of spaces
  • Loading branch information
dolibarr95 committed May 1, 2024
1 parent e90840c commit 960063a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions htdocs/expedition/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,14 @@

$expedition = new Expedition($db);

if ($socid > 0) {
$soc = new Societe($db);
$soc->fetch($socid);
if (empty($search_company)) {
$search_company = $soc->name;
}
}

$param = '';
if (!empty($mode)) {
$param .= '&mode='.urlencode($mode);
Expand Down

0 comments on commit 960063a

Please sign in to comment.