Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The company name is empty in the shipping list even though it was entered. #29544

Open
dolibarr95 opened this issue Apr 30, 2024 · 0 comments
Open

Comments

@dolibarr95
Copy link
Contributor

Bug

The company name is not filled even it was informed with param socid.

Environment

  • Version: 17.0.2
  • OS: Linux
  • Web server: Apache
  • PHP: litespeed 7.2.34
  • Database: MySQL or MariaDB 5.5.5-10.6.17-MariaDB
  • URL(s): /17/expedition/list.php?sortfield=e.date_delivery&sortorder=asc&begin=&contextpage=shipmentlist&search_company=THE+COMPANY+EXAMPLE

Expected and actual behavior

  1. Go to THE COMPANY EXAMPLE card
  2. Click on all the shipping of this company
  3. Reorder with an other filter (eg shipping date). At this step the company name shoud be filled in company filter
  4. the company name is 'lost'

Can be fixed with

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

Tks for reading

dolibarr95 added a commit to dolibarr95/dolibarr that referenced this issue Apr 30, 2024
@dolibarr95 dolibarr95 changed the title the company name is empty in the shipping list even though it was entered. The company name is empty in the shipping list even though it was entered. Apr 30, 2024
eldy pushed a commit that referenced this issue May 1, 2024
* Company name should not be empty if socid param declared

#29544

* tabs instead of spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant