Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@driusan
Copy link
Collaborator

@driusan driusan commented Oct 31, 2025

LINST instruments currently throw an exception because getExaminerNames is called to get a list of examiners to pass to addElement. However, getExaminerNames calls getField("Examiner") to get the default value. Since addElement hasn't been called yet, it throws an exception saying the field does not exist for the instrument.

This bypasses it by calling getInstanceData and getting the examiner key directly.

@driusan driusan added Category: Bug PR or issue that aims to report or fix a bug Priority: High PR or issue should be prioritised over others for review and testing labels Oct 31, 2025
@github-actions github-actions bot added the Language: PHP PR or issue that update PHP code label Oct 31, 2025
@driusan driusan changed the base branch from main to 27.0-release October 31, 2025 14:29
LINST instruments currently throw an exception because getExaminerNames is
called to get a list of examiners to pass to addElement. However, getExaminerNames
calls getField("Examiner") to get the default value. Since addElement hasn't
been called yet, it throws an exception saying the field does not exist
for the instrument.

This bypasses it by calling getInstanceData and getting the examiner key
directly.
Copy link
Contributor

@racostas racostas left a comment

Choose a reason for hiding this comment

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

LGTM.

Now BMI (LINST instrument in RB) is loading properly
image

Before I this PR I got the following 500 error:
image

@driusan driusan merged commit 43f631f into aces:27.0-release Oct 31, 2025
20 checks passed
@racostas racostas added the Passed manual tests PR has been successfully tested by at least one peer label Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Bug PR or issue that aims to report or fix a bug Language: PHP PR or issue that update PHP code Passed manual tests PR has been successfully tested by at least one peer Priority: High PR or issue should be prioritised over others for review and testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants