mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #33840
[Bug 1482384] Re: Need to fix copy page/collection where the original page has obsolete blocks
Easiest way to test this, if you're running Mahara from git, is to use
"git checkout" to pull out a copy of the contactinfo block, and remove
it once you're ready.
1. Install Mahara (from git)
2. Grab the code for the contactinfo blocktype: git checkout b5c9e316329eca254841783acbd0b7a5177d0349~ -- htdocs/artefact/internal/blocktype/contactinfo
3. Go to Administration -> Extensions and tell Mahara to install the "new" contactinfo blocktype.
4. Put a contact info block into a page. Set the page to copyable.
5. Remove the blocktype's code by doing: git stash
6. Try to copy the page.
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1482384
Title:
Need to fix copy page/collection where the original page has obsolete
blocks
Status in Mahara:
Fix Committed
Bug description:
If a user has a page / collection that contains blocks for blocktype
plugins that don't exist on the server anymore it causes the copying
to fail as certain functions can't be found during the copying
process.
There needs to be a step where the copy process either:
1) Not copy any plugin blocks where the plugin is not active, or
2) Check to see if the version.php file still exists for the plugin
first and not copy any blocks where it doesn't, or
3) Have the table column that keeps track of the 'active' status of
blocktype plugins to also have the option of '-1' to indicate not
active and also files missing (this info could also be displayed on
the Admin -> Extensions screen as well) so that the copy process
ignores blocks with active status = -1
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1482384/+subscriptions
References