-
Notifications
You must be signed in to change notification settings - Fork 179
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
Added case for when certificationInstruments inside the getCertificat… #3627
Added case for when certificationInstruments inside the getCertificat… #3627
Conversation
35ddfb2
to
dacb837
Compare
…ionInstruments() function has empty string and fixes console warning
dacb837
to
93dcf92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Was this PR supposed to remove the console warning or change it? I am getting a new warning now
|
"SELECT ID | ||
FROM test_names | ||
WHERE Test_name | ||
LIKE '%$test_key%'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these lines should be aligned with the query, other than that its ready to be approved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay fixed 👍
Ignore this -- fixed on major |
= \Utility::toArray($certificationInstruments['test']); | ||
foreach ($certificationInstruments['test'] as $certificationInstrument) { | ||
$test_key = $certificationInstrument['@']['value']; | ||
$testID = $DB->selectOne( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be pselectOne()
switched it to pselectOne
…ionInstruments() function has empty string and fixes console warning
This pull request
Fresh install of Loris will output a console warning when going to Clinical->Training. Fixed by checking if the variable $certificationInstruments is a blank string inside the function getCertificationInstruments() and resulting in the warning as no array was created.
.See also:
Bug #14380