Merge pull request #2404 from frederic34/patch-3

Update card.php
This commit is contained in:
Laurent Destailleur 2015-03-02 02:05:40 +01:00
commit c0d0fa317b

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