I'm not sure if I need to ask this here or in the Views section. Anyway, I am upgrading a site from D5 to D6 and have an issue with a Views block showing a workflow status summary. In D5 & Views 1, the block looks like image 1, but in D6 & Views 2 the block looks like image 2.

I initially imported the old view and tried creating a new view when that didn't work. To get the summary, I have added an argument of Workflow: Current State and set it to display a summary if no argument given. Having spent a few hours on this, I'm finally admitting defeat! Does anyone know how or is it possible to get a summary of the Workflow status names and count of a certain node type in that state rather than the Workflow Status Number?

CommentFileSizeAuthor
#2 workflow-411220.patch687 bytesjbrauer
image2.jpg4.19 KBBalefire
image1.jpg6.33 KBBalefire

Comments

kgale’s picture

I have the same issue and would love to know of a solution.

jbrauer’s picture

Title: Workflow & Views 2 block creation » Display status name in Views argument summary
Version: 6.x-1.1 » 6.x-1.x-dev
Component: Miscellaneous » Code
Category: support » bug
Issue tags: +views integration
StatusFileSize
new687 bytes

Here's a patch that displays the status name instead of the status ID in the workflow summary in views

jbrauer’s picture

Status: Active » Needs review
Balefire’s picture

Thanks for that, will test and see what happens. Due to time constraints, we had to go back to our D5 implementation as other issues in D6 were causing delays.

heather’s picture

Status: Needs review » Reviewed & tested by the community

I was also experiencing the same problem with status blocks.

This patch fixes the problem as expected!

Thanks, jbrauer!

jbrauer’s picture

This has been RTBC for a while now with no adverse reports... Any chance of getting it committed?

jvandyk’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Will appear in 6.x-1.5.

Status: Fixed » Closed (fixed)
Issue tags: -views integration

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