Skip to content

Commit

Permalink
Merge branch '11.0' of git@github.com:Dolibarr/dolibarr.git into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 8, 2020
2 parents 3852ba0 + 81df5cd commit 33addfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion htdocs/core/tpl/extrafields_list_search_sql.tpl.php
Expand Up @@ -40,7 +40,10 @@
if (in_array($typ, array('sellist','link')) && $crit != '0' && $crit != '-1') $mode_search=2; // Search on a foreign key int
if (in_array($typ, array('chkbxlst','checkbox'))) $mode_search=4; // Search on a multiselect field with sql type = text
if (is_array($crit)) $crit = implode(' ', $crit); // natural_search() expects a string

elseif ($typ === 'select' and is_string($crit) and strpos($crit, ' ') === false) {
$sql .= ' AND (' . $extrafieldsobjectprefix.$tmpkey . ' = "' . $db->escape($crit) . '")';
continue;
}
$sql .= natural_search($extrafieldsobjectprefix.$tmpkey, $crit, $mode_search);
}
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/expedition/class/expedition.class.php
Expand Up @@ -447,7 +447,7 @@ public function create($user, $notrigger = 0)
* @param array $array_options extrafields array
* @return int <0 if KO, line_id if OK
*/
public function create_line($entrepot_id, $origin_line_id, $qty, $rang, $array_options = 0)
public function create_line($entrepot_id, $origin_line_id, $qty, $rang = 0, $array_options = 0)
{
//phpcs:enable
global $user;
Expand Down

0 comments on commit 33addfa

Please sign in to comment.