When editing an activity (modedit.php page) the editing button added to the header (btw awesome functionality ;-) ) doesn't toggle edition mode. Url associated to the button is missing a "return" param
Possible fix : replace 'default' case in switch statement at line 1258 in output/core_renderer.php
default: $course = $this->page->course; if ($this->page->url->compare(new moodle_url('/course/view.php'), URL_MATCH_BASE)) { // We are on the course page, retain the current page params e.g. section. $url = clone($this->page->url); } else { // Edit on the main course page. $url = new moodle_url('/course/view.php', array('id'=>$course->id, 'return'=>$this->page->url->out_as_local_url(false))); } if ($this->page->user_is_editing()) { $url->param('edit', 'off'); } else { $url->param('edit', 'on'); } break;
Kind regards
Jean-Roch Meurisse
Moodle version : 3.1 (latest weekly release) Essential version: 2016061711 ('3.1.1.2 (Build: 2016061711)')
When editing an activity (modedit.php page) the editing button added to the header (btw awesome functionality ;-) ) doesn't toggle edition mode. Url associated to the button is missing a "return" param Possible fix : replace 'default' case in switch statement at line 1258 in output/core_renderer.php
default: $course = $this->page->course; if ($this->page->url->compare(new moodle_url('/course/view.php'), URL_MATCH_BASE)) { // We are on the course page, retain the current page params e.g. section. $url = clone($this->page->url); } else { // Edit on the main course page. $url = new moodle_url('/course/view.php', array('id'=>$course->id, 'return'=>$this->page->url->out_as_local_url(false))); } if ($this->page->user_is_editing()) { $url->param('edit', 'off'); } else { $url->param('edit', 'on'); } break;
Kind regards Jean-Roch Meurisse