Update product.class.php

This commit is contained in:
Laurent Destailleur 2019-10-16 14:26:49 +02:00 committed by GitHub
parent 3429cb7c1d
commit 4ca9fddfcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -787,12 +787,12 @@ class Product extends CommonObject
* Update a record into database.
* If batch flag is set to on, we create records into llx_product_batch
*
* @param int $id Id of product
* @param User $user Object user making update
* @param int $notrigger Disable triggers
* @param string $action Current action for hookmanager ('add' or 'update')
* @param int $updatetype Update product type
* @return int 1 if OK, -1 if ref already exists, -2 if other error
* @param int $id Id of product
* @param User $user Object user making update
* @param int $notrigger Disable triggers
* @param string $action Current action for hookmanager ('add' or 'update')
* @param boolean $updatetype Update product type
* @return int 1 if OK, -1 if ref already exists, -2 if other error
*/
public function update($id, $user, $notrigger = false, $action = 'update', $updatetype = false)
{