Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue-351: Fix traceback on listings #352

Merged
merged 3 commits into from
Nov 4, 2017
Merged

Issue-351: Fix traceback on listings #352

merged 3 commits into from
Nov 4, 2017

Conversation

ramonski
Copy link
Contributor

@ramonski ramonski commented Nov 4, 2017

Description of the issue/feature this PR addresses

Linked issue: #351

Current behavior before PR

Traceback on Listings where objects follow the bika_inactive_workflow

Desired behavior after PR is merged

Listings work for objects which follow a workflow that does not have the review_state variable

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

@ramonski ramonski changed the title Issue-351: Traceback on Listings Issue-351: Fix traceback on listings Nov 4, 2017
@ramonski ramonski requested a review from rockfruit November 4, 2017 14:20
@ramonski ramonski merged commit b2b81c8 into senaite:senaite-integration Nov 4, 2017
workflows = self.workflow.getWorkflowsFor(obj)
for wf in workflows:
if wf.state_var:
wf_state_var = wf.state_var
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really nice! When we merge senaite-integration to master, most secondary workflows (notably cancellation and deactivation) will be removed, and review_state will be used to manage these states.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants