stats4sd / aec_portfolio

A proof of concept for the AEC Consortium Project Management / Assessment System
GNU General Public License v3.0
0 stars 0 forks source link

Remove global scope from relationship call #159

Closed dave-mills closed 1 year ago

dave-mills commented 1 year ago

fixes #156.

The issue was that the PDF generation doesn't use the current session, so there is no selected organisation. The assessment calls the project relationship to check for the existence of additiopnal criteria. It was failing to find the project because of the global scope.

This PR removes the global scope from the relationship call. It doesn't affect other parts because it's assumed that once you have access to the assessment, you should always be able to access the parent project.

dan-tang-ssd commented 1 year ago

Pulled latest code and performed testing in local env, with positive result.


BEFORE:

image

image


AFTER:

image

image