There is a syntax error in the Immunization Report - Bug Fix


(Sherwin Gaddis) #1

When clicking the Get HL7 button, this error is in the Firefox console window. I will try to track it down. But this is going to be a hard one because PHPStorm did not catch this.

Thought I would try Chrome and this was in the console of Chrome.


(Sherwin Gaddis) #2

Line 402 is the problem. It was switched and when I switched it back. The button now works again.
The top line is 502 bottom line is 501. Switch the line back until a patch for this is released.


(Brady Miller) #3

That double quote sitting in front of the if is likely the problem there

(Brady Miller) #4

Actually, guessing that replacing
openemr/immunization_report.php at a58d21cdc4a5e4e07a532c13dcf4a398202ff69f · openemr/openemr · GitHub

removed bad code here
will work and properly escape that piece.

actually, above isn’t right. should be this:

                  'if(confirm(<?php echo xlj('This step will generate a file which you have to save for future use. The file cannot be generated again. Do you want to proceed?'); ?>)) {