From ca0b3db188e3d321e7d0e227e95be4bf0321fef2 Mon Sep 17 00:00:00 2001 From: Julio Date: Tue, 15 Oct 2019 09:56:20 +0200 Subject: [PATCH] Minor - fix navigation bar --- main/lp/learnpath.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main/lp/learnpath.class.php b/main/lp/learnpath.class.php index e4b70c48cc..1553271c8f 100755 --- a/main/lp/learnpath.class.php +++ b/main/lp/learnpath.class.php @@ -6600,7 +6600,8 @@ class learnpath $subscriptionSettings = self::getSubscriptionSettings(); - if (!$isConfigPage) { + $request = api_request_uri(); + if (strpos($request, 'edit') === false) { $actionsLeft .= Display::url( Display::return_icon( 'settings.png', @@ -6613,7 +6614,9 @@ class learnpath 'lp_id' => $this->lp_id, ]) ); - } else { + } + + if (strpos($request, 'build') === false && strpos($request, 'add_item') === false) { $actionsLeft .= Display::url( Display::return_icon( 'edit.png',