Update card.php

This commit is contained in:
Frédéric FRANCE 2015-02-28 10:45:48 +01:00
parent a67d0f712c
commit 84b5888cd5

View File

@ -51,9 +51,14 @@ $object = new Project($db);
$extrafields = new ExtraFields($db);
if ($id > 0 || ! empty($ref))
{
$object->fetch($id,$ref);
$object->fetch_thirdparty();
$id=$object->id;
$ret = $object->fetch($id,$ref);
if ($ret > 0) {
$object->fetch_thirdparty();
$id=$object->id;
} else {
setEventMessage($object->error, 'errors');
$action='';
}
}
// Security check