When viewing the results page of a bulk export the views menu tabs are not shown, so it makes it trouble to continue using views, you have to use your browser 'back' button, or navigate right through from the admin starting route.

This is caused by maybe an oversight in views_export_menu() where the 'type' for admin/build/views/tools/export/results is defined as MENU_CALLBACK whereas if it was set to MENU_LOCAL_TASK then you get the tabs displayed. See the attached screen grabs, before and after this change.

I'll make a patch for this.

Jonathan

Comments

jonathan1055’s picture

Status: Active » Needs review
StatusFileSize
new495 bytes

Here is a patch for D6, which will apply in views 2.11, 3.0 alpha3 and 3.0 dev of 26th Nov.

The patch will need to be re-rolled for D7, which I am happy to do if someone gives the OK that this is an improvement that we'd like.

Jonathan

merlinofchaos’s picture

Assigned: Unassigned » Letharion

Assigning to letharion for review.

Letharion’s picture

Assigned: Letharion » merlinofchaos

Tested this on 2.11 and 3.x-dev, and the patch works as advertised. The menu is indeed missing without the patch, and it shows up as expected with it.

I'm not sure where the 'title' is supposed to end up though, I don't see it anywhere?

I also have a strange issue on 3.x-dev where removing and re-applying the patch doesn't work, but that is most likely a local problem as the patch seems to simple to cause this. Will try again on a clean site later.

Letharion’s picture

Status: Needs review » Reviewed & tested by the community

Indeed, trying again from a clean site, applying, removing, and re-applying the patch works just fine on 3.x-dev.

merlinofchaos’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Applied to D6 branches. Needs work to port to D7.

dawehner’s picture

Status: Patch (to be ported) » Fixed

Ported

jonathan1055’s picture

Assigned: merlinofchaos » Unassigned

I was just making a patch for D7 but you beat me to it. Thanks for committing.

Status: Fixed » Closed (fixed)

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

jonathan1055’s picture

Status: Fixed » Patch (to be ported)

Sorry to re-open, but I have just downloaded 6.x-2.12 and this has not been applied to the D6 2.x branch as mentioned in #5.

Or maybe I mis-understood and you only intended to apply it to the 3.x branch?

dawehner’s picture

Version: 7.x-3.x-dev » 6.x-2.x-dev
Status: Closed (fixed) » Fixed

This is part of views 2.x, but isn't part of views 2.12.

jonathan1055’s picture

Do you mean that patches can be applied to 6.x-2.x-dev when 2.11 was the current release but they do not become part of the 2.12 release? I thought that everything in a -dev release would be present in the next full numbered release, but I'm happy to be corrected if this is wrong.

I can not find where the 6.x-2.x-dev release is listed for download to check. It does not seem to be in the 'all releases' page any more.

merlinofchaos’s picture

Status: Patch (to be ported) » Fixed

The Drupal infrastructure team recently released a feature allowing us to do security release branches individually. I was able to release 2.12 without all of -dev in order to get that security patch without endangering people's sites with code in the -dev branch that has not been thoroughly vetted.

Status: Fixed » Closed (fixed)

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