Skip to content
Snippets Groups Projects
Commit 4b4dc8fe authored by Jean-Pierre Morfin's avatar Jean-Pierre Morfin Committed by GitHub
Browse files

FIX Calling soc.php with an unknown socid display a message

Fix #4632
Calling soc.php with an unknown socid display a simple error message
parent bd1d0767
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,12 @@ $extralabels=$extrafields->fetch_name_optionals_label($object->table_element);
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
$hookmanager->initHooks(array('thirdpartycard','globalcard'));
if ($action == 'view' && $object->fetch($socid)<=0)
{
$langs->load("errors");
print($langs->trans('ErrorRecordNotFound'));
exit;
}
// Get object canvas (By default, this is not defined, so standard usage of dolibarr)
$object->getCanvas($socid);
......
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