Reviewed: https://reviews.mahara.org/8354 Committed: https://git.mahara.org/mahara/mahara/commit/e8fe8839957a3fc0b88340ab56314b784f8a3fec Submitter: Robert Lyon ([email protected]) Branch: master
commit e8fe8839957a3fc0b88340ab56314b784f8a3fec Author: Rebecca Blundell <[email protected]> Date: Thu Dec 14 11:46:10 2017 +1300 Bug 1731807 - remove unused blockinstance code I've removed some more things that don't seem to be needed. behatnotneeded Change-Id: I811aff5ac64e0d4178f61d39e19541f7b5e45cea -- 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/1731807 Title: Remove unused code from lib/view.php that was never used correctly Status in Mahara: Fix Committed Bug description: I noticed a bug in the theme/raw/templates/view/blocktypecontainerediting.tpl where there were two closing </button> tags to the one opening <button> tag (see lines 37/38) So I wondered why this didn't cause a problem rendering the page and found the code would only be rendered if $configure was true. And that would only happen if a block instance called render_editing with $configure = true And I noticed on view/blocks.php that happens when $blockid = $view->get_blockinstance_currently_being_configured(); But $view->get_blockinstance_currently_being_configured(); always returns 0 as the set_blockinstance_currently_being_configured() is never called. Changing the number from 0 to a valid block number on an edit screen and then reloading page gives all manner of errors. Looking at the commit that added the set/get functions 09c73752c11c800dcb2bfbb6606206831f19d439 this was before 1.0 release and doesn't look to have been implemented fully. We should clean up this area and remove any/all code that is not actually being used To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1731807/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp

