mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #49191
[Bug 1781844] Re: When pages are shared - users can delete blocks by accident
Hi Mahara team,
The commit has been created in Gerrit on its own branch for review:
https://reviews.mahara.org/#/c/9033/
Note:
If the Mac version of "xargs" is being run, this error will appear:
xargs: illegal option -- -
If "sed" on a mac is being run, this error will appear:
sed: illegal option -- r
Linux Sed and xargs are not the same as Mac ones... (silent moan into the void)
Commands for "sed" and "xargs" require that homebrew be installed and these commands be run:
brew install gnu-sed --with-default-names (on a mac - sed is called
gsed, the --with-default-names option will make it run as "sed" as per
the makefile call)
brew install findutils --with-default-names (or brew reinstall findutils
--with-default-names) as the default xargs on a mac runs differently to
linux, and hombrew will install the "linux" version as gxargs - the
option --with-default-names will make it behave.
These little tips could be be added to the https://wiki.mahara.org/wiki/Developer_Area/Contributing_Code
for those that code on mac.
--
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/1781844
Title:
When pages are shared - users can delete blocks by accident
Status in Mahara:
In Progress
Bug description:
Mahara 18.04.02
DB: Mysql
OS: Ubuntu
Browser: Chrome
A lot of users in Mahara create (Template) pages to share out to
users. This reduces the setup a new user will have to do to. There is
an issue that on their personal copy, the blocks that were so
carefully setup can be deleted.
This patch creates a new column in the database called "lockblocks"
that can be enabled/disabled on the share page.
When the user copies the page, this setting is copied over and the
"delete" icon is hidden from view should the lockblocks setting be
enabled.
To unset - the user can open the advanced options in the shared area
and disable the lock blocks feature to enable the deletion of the
blocks as per normal.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1781844/+subscriptions
References