MDL-56576 admin: Cannot edit blocks on search page

Admin search page was processing the blocks delete request before the blocks
could process it.

Added a hidden field to the search results form so it can be sure the form submission
was for saving admin settings.
This commit is contained in:
Damyon Wiese 2016-10-31 22:49:39 +08:00
parent 2a7c540c48
commit 057e1a1f6d
2 changed files with 2 additions and 1 deletions

View file

@ -37,6 +37,7 @@
<form action="{{actionurl}}" method="post" id="adminsettings">
<div>
<input type="hidden" name="sesskey" value="{{sesskey}}">
<input type="hidden" name="action" value="save-settings">
</div>
<fieldset>
<div class="clearer"></div>