From f14ba11afb7d7e36abdc788674069509de7b64d4 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 12 Nov 2020 16:06:51 +0100 Subject: [PATCH] LP: Allow to add a LP from a base course in the course session home. BT#17744 --- main/lp/lp_list.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/lp/lp_list.php b/main/lp/lp_list.php index 8736e75ca5..e0e8ae5ce1 100755 --- a/main/lp/lp_list.php +++ b/main/lp/lp_list.php @@ -586,7 +586,7 @@ foreach ($categories as $item) { ); /* PUBLISH COMMAND */ - if ($sessionId == $details['lp_session']) { + //if ($sessionId == $details['lp_session']) { if ($details['lp_published'] === 'i') { $dsp_publish = Display::url( Display::return_icon( @@ -604,12 +604,12 @@ foreach ($categories as $item) { api_get_self().'?'.$cidReq."&lp_id=$id&action=toggle_publish&new_status=i" ); } - } else { + /*} else { $dsp_publish = Display::return_icon( 'lp_publish_na.png', get_lang('LearnpathDoNotPublish') ); - } + }*/ /* MULTIPLE ATTEMPTS OR SERIOUS GAME MODE SERIOUSGAME MODE is a special mode where :