I am using workflows for groups (https://www.drupal.org/project/group) and workflows for nodes. So far everything works well - but there is one problem I found:

In the workflow history tab, all state changes are presented based on the ID - and if a node and a group have changes, and have the same ID (which can happen, as group IDs are different from node IDs) - a collection of state changes is shown from groups and nodes.

E.g. I have a group with the number 14622 and a node with the same number, then both operations will be shown there.

regards
Christian

CommentFileSizeAuthor
#4 entity-tab-mixup-3014620-4.patch2.42 KBjviitamaki

Comments

ChrisZZ created an issue. See original summary.

johnv’s picture

The Workflow HIstory tab can be shown in 2 different ways:

- programmed
- via a view (overwrites the programmed version)

Please check if you have the view enabled. Perhaps you can tweak the View to work properly.
Also, the tab works on the path.
Can you give an example of URL-paths for both options?

johnv’s picture

Title: workflow for groups and nodes » WorkflowHistory tab mix-up for groups and nodes
jviitamaki’s picture

StatusFileSize
new2.42 KB

I happened to bump in to this one and I think that the problem is that WorkflowTransitionListController->historyOvervew() overrides view arguments for history list view and only uses entity_id as an argument causing the workflow history to list transitions made in other entity types as long as the id matches.

Made a quick patch that should fix the problem at least on clean installs.

johnv’s picture

Status: Active » Needs review

  • johnv committed 1aee6f0d on 8.x-1.x authored by jviitamaki
    Issue #3014620 by jviitamaki: WorkflowHistory tab mix-up for groups and...
johnv’s picture

Version: 8.x-1.x-dev » 8.x-1.7
Status: Needs review » Fixed

Thanks, committed.

Status: Fixed » Closed (fixed)

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