mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #31102
[Bug 1511536] A change has been merged
Reviewed: https://reviews.mahara.org/5646
Committed: https://git.mahara.org/mahara/mahara/commit/52770f8baf2297d9cbf5506e2696b346fae8f419
Submitter: Aaron Wells (aaronw@xxxxxxxxxxxxxxx)
Branch: master
commit 52770f8baf2297d9cbf5506e2696b346fae8f419
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date: Fri Oct 30 12:26:48 2015 +1300
Bug 1511536: problem with deleting blocks when edit page first loads
The problem is due to the scope of the blockinstanceId variable being
outside of the click handler function, which inadvertently makes it
into a sort of static variable shared by all of the delete buttons.
So the solution is to use a locally-scoped blockinstanceId button
inside the click handler method.
Change-Id: I3e8ffac31cc869c545e85c5f53c3e710e2e71243
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Signed-off-by: Aaron Wells <aaronw@xxxxxxxxxxxxxxx>
--
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/1511536
Title:
Deleting blocks from page fails in some cases in 15.10
Status in Mahara:
Fix Committed
Status in Mahara 15.10 series:
In Progress
Bug description:
The is an odd bug where the block being deleted doesn't remove itself
from the edit screen. so when you try to delete it again you get an
error message that the block doesn't exist any more.
To replicate:
Make a page and add some blocks to the page - preferably 3 or more
(any type)
Go to display page
Go back to edit page and delete the blocks
- the first will delete fine but then next ones will not disappear
However if each block is edited and then deleted they are removed
fine.
So this sounds like there is a problem with initial setup of the js
relating to the delete buttons but not when the buttons are rewritten
after config changes
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1511536/+subscriptions
References