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

Fix Unable to get the portal object when digesting/creation the results report #388

Merged
merged 2 commits into from
Nov 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Changelog

**Fixed**

- #388 Unable to get the portal object when digesting/creating results report
- #387 ClientWorkflowAction object has no attribute 'portal_url' when publishing multiple ARs
- #386 PR-2313 UniqueFieldValidator: Encode value to utf-8 before passing it to the catalog
- #386 PR-2312 IDServer: Fixed default split length value
Expand Down
3 changes: 1 addition & 2 deletions bika/lims/browser/analysisrequest/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from bika.lims import POINTS_OF_CAPTURE, bikaMessageFactory as _, t
from bika.lims import logger
from bika.lims.api import get_tool
from bika.lims.browser import BrowserView, ulocalized_time
from bika.lims.catalog.analysis_catalog import CATALOG_ANALYSIS_LISTING
from bika.lims.idserver import renameAfterCreation
Expand Down Expand Up @@ -1278,7 +1277,7 @@ def _analyses_data(self, ar, analysis_states=None):
workflow = getToolByName(self.context, 'portal_workflow')
showhidden = self.isHiddenAnalysesVisible()

catalog = get_tool(CATALOG_ANALYSIS_LISTING)
catalog = getToolByName(self.context, CATALOG_ANALYSIS_LISTING)
brains = catalog({'getRequestUID': ar.UID(),
'review_state': analysis_states,
'sort_on': 'sortable_title'})
Expand Down