Skip to content
Snippets Groups Projects
Commit d7914767 authored by John's avatar John
Browse files

Fix doaction call

parent c2a89ae5
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,9 @@ if( ! $user->rights->resource->read)
accessforbidden();
$object = new Dolresource($db);
$objectFetchRes = $object->fetch($id);
if ( !$objectFetchRes> 0 ) dol_print_error();
$extrafields = new ExtraFields($db);
......@@ -162,7 +165,7 @@ llxHeader('',$pagetitle,'');
$form = new Form($db);
$formresource = new FormResource($db);
if ( $object->fetch($id) > 0 )
if ( $objectFetchRes > 0 )
{
$head=resource_prepare_head($object);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment