The other day we were testing custom filters on a search page, and it was pretty annoying that every time we saved the form it redirected us back to the environment overview page. Adding a "Save and Edit" button would make tasks like this a lot simpler by allowing search administrators to save and test changes more easily.

Comments

soyarma’s picture

+1000

nick_vh’s picture

Status: Active » Needs review
StatusFileSize
new2.99 KB

Adds some duplicate code for path redirect, but it works as expected. On a save it gets returned to the admin page with the listing. On safe and edit it returns the the current_path, whatever that might be.

nick_vh’s picture

StatusFileSize
new2.75 KB

stupid whitespaces

nick_vh’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)

Committed to 7.x-1.x, needs backport

cpliakas’s picture

Totally awesome! Great work.

pwolanin’s picture

I'm seeing the normal "save" as broken now in 7.x - it keeps me on the same page.

nick_vh’s picture

Version: 6.x-3.x-dev » 7.x-1.x-dev
Status: Patch (to be ported) » Needs review
StatusFileSize
new1.52 KB
nick_vh’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)

Committed to D7, moving back to needs backport for 6.x-3.x

pwolanin’s picture

Version: 6.x-3.x-dev » 7.x-1.x-dev
Status: Patch (to be ported) » Needs work

'op' is deprecated.

pwolanin’s picture

Status: Needs work » Needs review
StatusFileSize
new1.08 KB

how about this?

pwolanin’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)

committed to 7.x

nick_vh’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new4.59 KB

backported to 6.x-3.x - that destination param is a sh*t thing in D6. Patch I posted has been manually and programmatically tested.

nick_vh’s picture

Status: Needs review » Fixed

committed

Status: Fixed » Closed (fixed)

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