Merge branch 'NEW_stock_categories' of github.com:atm-quentin/dolibarr into NEW_stock_categories
This commit is contained in:
commit
a46ed62e81
@ -854,7 +854,8 @@ class Entrepot extends CommonObject
|
|||||||
* @param int[]|int $categories Category or categories IDs
|
* @param int[]|int $categories Category or categories IDs
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setCategories($categories) {
|
public function setCategories($categories)
|
||||||
|
{
|
||||||
// Handle single category
|
// Handle single category
|
||||||
if (! is_array($categories)) {
|
if (! is_array($categories)) {
|
||||||
$categories = array($categories);
|
$categories = array($categories);
|
||||||
@ -888,5 +889,4 @@ class Entrepot extends CommonObject
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user