From 29d1118a39be01e439258a7f25c549b52cc679cc Mon Sep 17 00:00:00 2001 From: Florian Azizian <florian.azizian@maarch.org> Date: Tue, 15 Jul 2014 15:21:01 +0000 Subject: [PATCH] FIX #1434 ajout parametres dans addLinks() --- core/trunk/core/class/LinkController.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/trunk/core/class/LinkController.php b/core/trunk/core/class/LinkController.php index a314b3d51dd..a20add77399 100755 --- a/core/trunk/core/class/LinkController.php +++ b/core/trunk/core/class/LinkController.php @@ -118,7 +118,17 @@ class LinkController $return .= '\''.$_SESSION['config']['businessappurl'].'index.php?page=add_links&display=true\', '; $return .= '\''.$delChild.'\' ,'; $return .= '\''.$delParent.'\' ,'; - $return .= '\'del\''; + $return .= '\'del\','; + + if ($_SESSION['current_basket']['coll_id'] == 'letterbox_coll') { + $return .= '\'res_view_letterbox\''; + } elseif ($_SESSION['current_basket']['coll_id'] == 'business_coll') { + $return .= '\'res_view_business\''; + } else { + $return .= '\'\''; + } + + $return .= ');'; $return .= '">'; $return .= '<img src="static.php?filename=picto_delete.gif" />'; -- GitLab