Skip to content
Snippets Groups Projects
Commit a5e35035 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #5187 from atm-gauthier/3.8_fix_param_fetch_company

FIX : can't fetch by siret or siren because of first "if"
parents 82ea686b 84e75eed
No related branches found
No related tags found
No related merge requests found
......@@ -1006,7 +1006,7 @@ class Societe extends CommonObject
global $langs;
global $conf;
if (empty($rowid) && empty($ref) && empty($ref_ext) && empty($ref_int)) return -1;
if (empty($rowid) && empty($ref) && empty($ref_ext) && empty($ref_int) && empty($idprof1) && empty($idprof2) && empty($idprof3) && empty($idprof4)) return -1;
$sql = 'SELECT s.rowid, s.nom as name, s.name_alias, s.entity, s.ref_ext, s.ref_int, s.address, s.datec as date_creation, s.prefix_comm';
$sql .= ', s.status';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment