Hide the Portfolio -> Import tab if no import plugins are enabled

Bug #1421022 reported by Aaron Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Robert Lyon

Bug Description

The "Portfolio -> Skins" tab is hidden if skins aren't enabled.

The "Portfolio -> Export" tab is hidden if you disable all export methods.

But if you disable all import plugins, the "Portfolio -> Import" tab is still displayed, and it takes you to a page that says "The site administrator did not enable the import plugin. Therefore, you cannot use it. "

We should look at how we're doing this for the Export plugins and copy that logic for the Import plugins.

Tags: import
Revision history for this message
Aaron Wells (u-aaronw) wrote :
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 15.04.0 → 15.04.1
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 15.04.1 → 15.10.0
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 15.10.0 → 16.04.0
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 16.04.0 → 16.10.0
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 16.10.0 → 16.10.1
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 16.10.1 → 17.04.0
Robert Lyon (robertl-9)
Changed in mahara:
assignee: Aaron Wells (u-aaronw) → nobody
assignee: nobody → Robert Lyon (robertl-9)
status: In Progress → Confirmed
importance: Low → Medium
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/7582

Robert Lyon (robertl-9)
Changed in mahara:
status: Confirmed → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/7582
Committed: https://git.mahara.org/mahara/mahara/commit/f2d4bf133da11897a6e4a17ffad124ff1c1b117a
Submitter: Aaron Wells (<email address hidden>)
Branch: master

commit f2d4bf133da11897a6e4a17ffad124ff1c1b117a
Author: Robert Lyon <email address hidden>
Date: Thu Mar 30 13:53:12 2017 +1300

Bug 1421022: Hide import link when plugins disabled

Note: you'll need to clear cache (or disable/enable a plugin)
for the change to menu to appear

behatnotneeded

Change-Id: I81d9e02269972f49c578bd9edd581a348e09768e
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.