Merge pull request #11453 from atm-greg/FIX_9.0_selectForFormsList_for_invoices
fix case objecttmp is an invoice in selectForFormsList
This commit is contained in:
commit
d04b19549e
@ -5558,7 +5558,8 @@ class Form
|
|||||||
if ($prefixforautocompletemode == 'societe') $prefixforautocompletemode='company';
|
if ($prefixforautocompletemode == 'societe') $prefixforautocompletemode='company';
|
||||||
$confkeyforautocompletemode=strtoupper($prefixforautocompletemode).'_USE_SEARCH_TO_SELECT'; // For example COMPANY_USE_SEARCH_TO_SELECT
|
$confkeyforautocompletemode=strtoupper($prefixforautocompletemode).'_USE_SEARCH_TO_SELECT'; // For example COMPANY_USE_SEARCH_TO_SELECT
|
||||||
|
|
||||||
$fieldstoshow='t.ref';
|
if (((float) DOL_VERSION) < 10 && $objecttmp->element == 'facture') $fieldstoshow = 't.facnumber';
|
||||||
|
else $fieldstoshow='t.ref';
|
||||||
if (! empty($objecttmp->fields)) // For object that declare it, it is better to use declared fields ( like societe, contact, ...)
|
if (! empty($objecttmp->fields)) // For object that declare it, it is better to use declared fields ( like societe, contact, ...)
|
||||||
{
|
{
|
||||||
$tmpfieldstoshow='';
|
$tmpfieldstoshow='';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user