commit
c0d0fa317b
@ -51,9 +51,14 @@ $object = new Project($db);
|
|||||||
$extrafields = new ExtraFields($db);
|
$extrafields = new ExtraFields($db);
|
||||||
if ($id > 0 || ! empty($ref))
|
if ($id > 0 || ! empty($ref))
|
||||||
{
|
{
|
||||||
$object->fetch($id,$ref);
|
$ret = $object->fetch($id,$ref);
|
||||||
$object->fetch_thirdparty();
|
if ($ret > 0) {
|
||||||
$id=$object->id;
|
$object->fetch_thirdparty();
|
||||||
|
$id=$object->id;
|
||||||
|
} else {
|
||||||
|
setEventMessage($object->error, 'errors');
|
||||||
|
$action='';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user