From a663f8fb3bfe7da611807cb35513cc98af9fe273 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 12 Sep 2012 16:02:01 +0200 Subject: [PATCH] Fix: remove obsolete code --- htdocs/societe/document.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htdocs/societe/document.php b/htdocs/societe/document.php index 2b68c5ad13f..edca64dfcf8 100644 --- a/htdocs/societe/document.php +++ b/htdocs/societe/document.php @@ -42,8 +42,7 @@ $ref = GETPOST('ref', 'alpha'); // Security check if ($user->societe_id > 0) { - unset($_GET["action"]); - $action=''; + unset($action); $socid = $user->societe_id; } $result = restrictedArea($user, 'societe', $id, '&societe'); @@ -188,8 +187,7 @@ if ($object->id) $formfile->form_attach_new_file($_SERVER["PHP_SELF"].'?id='.$object->id,'',0,0,$user->rights->societe->creer,50,$object); // List of document - $param='&socid='.$object->id; - $formfile->list_of_documents($filearray,$object,'societe',$param); + $formfile->list_of_documents($filearray,$object,'societe'); print "

"; }