Fixes the query to detect the custom field associated to the SDG to consider both the plan configuration and the plan itself. The PR avoid errors detecting SDGs associated to other plans
:shipit: Does this PR changes any configuration file?
No
(Changes in these files might need to update the role in Ansible)
:book: Does this PR require updating the documentation?
Closes PopulateTools/issues#1954
:v: What does this PR do?
Fixes the query to detect the custom field associated to the SDG to consider both the plan configuration and the plan itself. The PR avoid errors detecting SDGs associated to other plans
:shipit: Does this PR changes any configuration file?
No
(Changes in these files might need to update the role in Ansible)
:book: Does this PR require updating the documentation?
No