2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2015-10-01 16:50:18 +02:00
parent e76124add5
commit 60c0338d64
9 changed files with 9 additions and 9 deletions

View File

@@ -28,7 +28,7 @@
// $cancel must be defined
// $id or $ref must be defined (object is loaded in this file with fetch)
if (($id > 0 || ! empty($ref)) && empty($cancel))
if (($id > 0 || (! empty($ref) && ! in_array($action, array('create','createtask')))) && empty($cancel))
{
$ret = $object->fetch($id,$ref);
if ($ret > 0)