When creating a new object by accident, you have to fill out the entire form to delete it.

1. Create a new object (do not save outline)
2. Remove anything from the "title" field
3. Check "Delete'
4. Press "Save"

This only happens when the object is in a temporary state, so maybe we can add a "Delete" button that bypasses validation.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

djdevin created an issue. See original summary.

djdevin’s picture

Status: Active » Needs review
FileSize
5.55 KB

- since Drupal 7.50 we can use PHP callables to clean up some of the object validation/submit code!
- added a delete button, but only when the object is temporary (to bypass validation)
- removed dependency on ctools dependent and used Drupal states API instead

djdevin’s picture

djdevin’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests
djdevin’s picture

Status: Needs work » Needs review
Issue tags: -Needs tests
FileSize
10.62 KB
djdevin’s picture

Status: Needs review » Fixed

  • djdevin committed b8a6f8c on 7.x-1.x
    Issue #2785695 by djdevin: objects can't be deleted without validation
    

  • djdevin committed b8f38ba on 7.x-1.x
    Issue #2785695 by djdevin: use different key since delete is used...

Status: Fixed » Closed (fixed)

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