2
0
forked from Wavyzz/dolibarr

Signatures of methods createFromClone() has been standardized. All

methods requires the object User as first parameter.
This commit is contained in:
Laurent Destailleur
2019-04-25 12:11:32 +02:00
parent e08959484d
commit 091132de2f
44 changed files with 138 additions and 173 deletions

View File

@@ -1070,10 +1070,11 @@ class Commande extends CommonOrder
/**
* Load an object from its id and create a new one in database
*
* @param int $socid Id of thirdparty
* @return int New id of clone
* @param User $user User making the clone
* @param int $socid Id of thirdparty
* @return int New id of clone
*/
public function createFromClone($socid = 0)
public function createFromClone(User $user, $socid = 0)
{
global $conf, $user,$hookmanager;