Steps to reproduce:

  1. Create a new term
  2. Click 'edit' from the term list page
  3. Click the 'Delete' link in the bottom right hand corner
  4. Expected to be taken to the confirm delete page
  5. Was taken back to the term listing page and the term was not deleted

Comments

kim.pepper’s picture

tim.plunkett’s picture

This is actually different from the other issue, but it needs similar test coverage.

TermFormController::delete() sets the redirect, but the destination seems to override it. Not 100% sure what's going on there.

-enzo-’s picture

Status: Active » Closed (works as designed)
kim.pepper’s picture

Status: Closed (works as designed) » Active

This does not work as designed. A term still cannot be deleted from the term edit form.

TimVS’s picture

Status: Active » Needs review
StatusFileSize
new850 bytes

I wrote a patch.
The problem was that the destination wasn't removed.

TimVS’s picture

StatusFileSize
new850 bytes

Double post due to the network

swentel’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

Patch works, but we need tests for this.

kim.pepper’s picture

Assigned: Unassigned » kim.pepper
kim.pepper’s picture

Status: Needs work » Needs review
StatusFileSize
new1.53 KB
new1.68 KB
new868 bytes

The tests are currently passing because there is no 'destination' query string param being passed. Once you pass one in, it should fail.

The last submitted patch, 2069411-term-delete-9-PASS.patch, failed testing.

kim.pepper’s picture

Status: Needs work » Needs review
Issue tags: +Needs tests

#9: 2069411-term-delete-9-PASS.patch queued for re-testing.

swentel’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs tests

Cool, thanks!

Bojhan’s picture

Just an FYI. As far I know, this button shouldn't even be there.

dries’s picture

But why does the destination overwrite things? Not sure I understand why it needs to be unset.

xano’s picture

xano’s picture

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 9: 2069411-term-delete-9-PASS.patch, failed testing.

shreya shetty’s picture

Issue summary: View changes
StatusFileSize
new86.98 KB
new82.26 KB
new90.47 KB

This issue wherein the delete link works as expected.I have some screenshots attached.

shreya shetty’s picture

Status: Needs work » Closed (works as designed)