This is a two part issue.

1) On the block management index the "delete" link does not appear for any box entities.

2) When editing a box the "delete" button does nothing.

And so, I am unable to delete boxes once it is created.

CommentFileSizeAuthor
#1 boxes-delete-1444540.patch897 bytesemptyvoid

Comments

emptyvoid’s picture

StatusFileSize
new897 bytes

Patch to enable delete.

emptyvoid’s picture

Status: Active » Needs review
tirdadc’s picture

Assigned: Unassigned » tirdadc

This addresses 2) by overwriting $_GET['destination'], I'm trying to fix it using $form_state['redirect'] which is the recommended way.

In the meantime I've fixed the missing delete button on admin/structure/block with this commit.

tirdadc’s picture

Status: Needs review » Fixed

Following more testing, the overwrite seems necessary given the use of 'destination' / $form['#action'] elsewhere for the Cancel behavior, since that's what's preventing the $form_state['redirect'] approach from workin in boxes_block_delete_submit().

Committed the patch for now with a comment about this for later review. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

rogical’s picture

Fatal error: Call to a member function delete() on a non-object in /opt/development/yourhelps/sites/all/modules/boxes/boxes.admin.inc on line 67

Still got error...