Fix: Removed warning
This commit is contained in:
parent
bb9dd1be10
commit
4a49d32689
@ -22,7 +22,7 @@
|
|||||||
/**
|
/**
|
||||||
* \file htdocs/comm/action/document.php
|
* \file htdocs/comm/action/document.php
|
||||||
* \ingroup agenda
|
* \ingroup agenda
|
||||||
* \brief Page des documents joints sur les actions
|
* \brief Page of documents linked to actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("../../main.inc.php");
|
require("../../main.inc.php");
|
||||||
@ -40,7 +40,7 @@ $langs->load("other");
|
|||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
|
|
||||||
if (isset($_GET["error"])) $error=$_GET["error"];
|
if (isset($_GET["error"])) $error=$_GET["error"];
|
||||||
$objectid = isset($_GET["id"])?$_GET["id"]:'';
|
$objectid = GETPOST("id");
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0)
|
||||||
@ -132,9 +132,7 @@ if ($objectid > 0)
|
|||||||
$author->fetch($act->author->id);
|
$author->fetch($act->author->id);
|
||||||
$act->author=$author;
|
$act->author=$author;
|
||||||
|
|
||||||
$contact=new Contact($db);
|
if ($act->contact->id) $act->fetch_contact($act->contact->id);
|
||||||
$contact->fetch($act->contact->id);
|
|
||||||
$act->contact=$contact;
|
|
||||||
|
|
||||||
$head=actions_prepare_head($act);
|
$head=actions_prepare_head($act);
|
||||||
dol_fiche_head($head, 'documents', $langs->trans("Action"),0,'action');
|
dol_fiche_head($head, 'documents', $langs->trans("Action"),0,'action');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user