mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix 6910 if conf PROJECT_USE_SEARCH_TO_SELECT is used we got BadFirstParameterForGETPOST
This commit is contained in:
parent
b6af1f7e6e
commit
6b4e22ec3c
|
|
@ -195,6 +195,7 @@ class Expedition extends CommonObject
|
|||
// Clean parameters
|
||||
$this->brouillon = 1;
|
||||
$this->tracking_number = dol_sanitizeFileName($this->tracking_number);
|
||||
if (empty($this->fk_project)) $this->fk_project = 0;
|
||||
|
||||
$this->user = $user;
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ $idprod = (! empty($match[0]) ? $match[0] : '');
|
|||
if (! GETPOST($htmlname) && ! GETPOST($idprod)) return;
|
||||
|
||||
// When used from jQuery, the search term is added as GET param "term".
|
||||
$searchkey=(GETPOST($idprod)?GETPOST($idprod):(GETPOST($htmlname)?GETPOST($htmlname):''));
|
||||
$searchkey=(!empty($idprod) && GETPOST($idprod)?GETPOST($idprod):(GETPOST($htmlname)?GETPOST($htmlname):''));
|
||||
|
||||
$form = new FormProjets($db);
|
||||
$arrayresult=$form->select_projects_list($socid, '', $htmlname, 0, 0, 1, $discard_closed, 0, 0, 1, $searchkey);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user