Commit 705bfd3e authored by e2thex's avatar e2thex
Browse files

issue #1444544: Box visibility settings do not save

parent 3e66c35d
Loading
Loading
Loading
Loading
+1 −4
Changes for boxes.module: 1 added line, 4 removed lines.
Original line number Diff line number Diff line
@@ -133,9 +133,6 @@ function boxes_block_configure($delta) {
 * Implements hook_block_save().
 */
function boxes_block_save($delta, $edit) {
  $edit['delta'] = $delta;
  $box = boxes_factory($edit['plugin_key'], $edit);
  $box->save();
}

/**
@@ -489,7 +486,7 @@ function boxes_form_alter(&$form, &$form_state, $form_id) {
  }
  
  // Use the Box form submit handler and properly redirect to the correct admin page
  $form['#submit'][0] = 'boxes_box_form_submit';
  array_unshift($form['#submit'], 'boxes_box_form_submit');
  $form['#action'] = '?destination=admin/structure/block';
  
  // Cancel behavior is different here