From d11fc24e3b90762c176bdc5e5b052baf845ac4c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 1 Nov 2019 17:46:00 +0100 Subject: [PATCH 1/4] Update index.php --- htdocs/mrp/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/mrp/index.php b/htdocs/mrp/index.php index 742d94109e2..bd342e06b3e 100644 --- a/htdocs/mrp/index.php +++ b/htdocs/mrp/index.php @@ -236,7 +236,7 @@ else print ''; $parameters = array('type' => $type, 'user' => $user); -$reshook = $hookmanager->executeHooks('dashboardMRP', $parameters, null); // Note that $action and $object may have been modified by hook +$reshook = $hookmanager->executeHooks('dashboardMRP', $parameters, ''); // Note that $action and $object may have been modified by hook // End of page llxFooter(); From f30c8eb6e894f41e42ff1fc9ac5b9716f664db64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 1 Nov 2019 17:54:22 +0100 Subject: [PATCH 2/4] Update index.php Fatal error: Uncaught Error: Cannot pass parameter 3 by reference in /home/fred/netlogic/dolibarr/htdocs/mrp/index.php on line 239 --- htdocs/mrp/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/mrp/index.php b/htdocs/mrp/index.php index bd342e06b3e..d4b63515157 100644 --- a/htdocs/mrp/index.php +++ b/htdocs/mrp/index.php @@ -236,7 +236,8 @@ else print ''; $parameters = array('type' => $type, 'user' => $user); -$reshook = $hookmanager->executeHooks('dashboardMRP', $parameters, ''); // Note that $action and $object may have been modified by hook +$object = new stdClass(); +$reshook = $hookmanager->executeHooks('dashboardMRP', $parameters, $object); // Note that $action and $object may have been modified by hook // End of page llxFooter(); From 433b45537669a4b08fd9036ebc6c23ef761e531c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 1 Nov 2019 18:29:02 +0100 Subject: [PATCH 3/4] Update index.php --- htdocs/mrp/index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/mrp/index.php b/htdocs/mrp/index.php index d4b63515157..a46fc868a20 100644 --- a/htdocs/mrp/index.php +++ b/htdocs/mrp/index.php @@ -236,8 +236,7 @@ else print ''; $parameters = array('type' => $type, 'user' => $user); -$object = new stdClass(); -$reshook = $hookmanager->executeHooks('dashboardMRP', $parameters, $object); // Note that $action and $object may have been modified by hook +$reshook = $hookmanager->executeHooks('dashboardMRP', $parameters); // End of page llxFooter(); From 40a9326d511a1189ec1426585cba5d6c6de7a197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 1 Nov 2019 18:42:58 +0100 Subject: [PATCH 4/4] $type is undefined --- htdocs/mrp/index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/mrp/index.php b/htdocs/mrp/index.php index a46fc868a20..0a7a77c48f8 100644 --- a/htdocs/mrp/index.php +++ b/htdocs/mrp/index.php @@ -235,7 +235,10 @@ else print ''; -$parameters = array('type' => $type, 'user' => $user); +$parameters = array( + //'type' => $type, + 'user' => $user, +); $reshook = $hookmanager->executeHooks('dashboardMRP', $parameters); // End of page