forked from Wavyzz/dolibarr
FIX #3628
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user