Prescription js error


(Дмитро Реміш) #1

Situation
In “Prescription” of patient profile don’t work “Save and Dispense” button

Uncaught ReferenceError: disp_quantity is not defined
at dispense (controller.php?prescription&edit&id=15:91)
at controller.php?prescription&edit&id=15:327

Solution
/templates/prescription/general_edit.html
f.encodeURIComponent(disp_quantity.value)
Сorrectly:
encodeURIComponent(f.disp_quantity.value)

OpenEMR Version
5.0.2


(Stephen Waite) #2

hi @E-2, thanks for the bug report and fix. Would you like to create a pull request? Pull Requests · openemr/openemr · GitHub


(Stephen Waite) #3

hi @E-2, Prescription js error, typo reported and fixed in forum by stephenwaite · Pull Request #2716 · openemr/openemr · GitHub