Skip to content

Commit

Permalink
MDL-32451 fix block edit strict issue
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 21, 2012
1 parent ead4f18 commit b3aad0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ function definition() {

$mform->addElement('select', 'bui_pagetypepattern', get_string('restrictpagetypes', 'block'), $pagetypelist);
} else {
$value = array_pop(array_keys($pagetypelist));
$values = array_keys($pagetypelist);
$value = array_pop($values);
$mform->addElement('hidden', 'bui_pagetypepattern', $value);
// Now we are really hiding a lot (both page-contexts and page-type-patterns),
// specially in some systemcontext pages having only one option (my/user...)
Expand Down

0 comments on commit b3aad0a

Please sign in to comment.