chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

help-block" is replaced with custom_tab_1, Also I can't disable "Buy Courses" Tab

Open rajeekum opened this issue 6 years ago • 2 comments

Describe I have enabled plugin - Buy Courses. After that I am facing following issues:

  1. Under Administration Tab - I see "help-block" has been replaced by custom_tab_1
  2. Even after disabling "Buy Courses" plugin, Buy Courses button is active and once i click on it, it is taking me to "whoisonline.php" code.

To Reproduce Steps to reproduce the behavior:

  1. Go to -- Administration -- Plugins -- Enable Buy Courses
  2. Observed that Buy Courses is enabled
  3. Now disable buy courses -- I don't it is getting disabled.
  4. Under Administration Tab - I see "help-block" has been replaced by custom_tab_1
  5. Even after disabling "Buy Courses" plugin, Buy Courses button is active and once i click on it, it is taking me to "whoisonline.php" code.

As workaround: I have disabled below code in banner.lib.php to hide "Buy Courses" button. But don't know if this is write fix. Other issues are still there.

// Custom Tabs See BT#7180 -6th May 2020

// $customTabs = getCustomTabs(); // if (!empty($customTabs)) { // foreach ($customTabs as $tab) { // if (api_get_setting($tab['variable'], $tab['subkey']) == 'true') { // if (!empty($tab['comment']) && $tab['comment'] !== 'ShowTabsComment') { // $navigation[$tab['subkey']]['url'] = $tab['comment']; // // $tab['title'] value must be included in trad4all.inc.php // $navigation[$tab['subkey']]['title'] = get_lang($tab['title']); // $navigation[$tab['subkey']]['key'] = $tab['subkey']; // } // } // } // } // End Custom Tabs

Expected behavior Buy Courses should enable and disable properly without affecting other courses.

Screenshots

image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: chrome, firefox

**Server

  • OS: Linux Ubuntu 18.04
  • Version of Chamilo: 1.11.11
  • Version of PHP: 7.2

Additional context

rajeekum avatar May 06 '20 01:05 rajeekum

One More Attachment.

image

rajeekum avatar May 06 '20 03:05 rajeekum

Thank you everybody for help. Issue fixed.

rajeekum avatar May 08 '20 16:05 rajeekum