LBF – Product section...bug?

Hi to all,
I have tried to create LBF and include Product section on it but when trying to select products form popup screen no product are visible nor available to select (see screenshot)

Just checked that in browser and something like this appeared as error
Uncaught TypeError: Cannot read property ‘split’ of null find_code_dynamic.php?codetype=PROD
at HTMLTableRowElement. (find_code_dynamic.php?codetype=PROD:80)
at HTMLTableElement.dispatch (jquery.min.js?v=49:3)
at HTMLTableElement.q.handle (jquery.min.js?v=49:3)

It seems that problem is in find_code_dynamic.php in openemr\interface\patient_file\encounter
Any idea how to fix this?

Thanks in advance and all the best in 2021


I have checked I am not able to see the issue on my end can you please tell the exact steps that you had followed to reproduce this issue.


Hi Nilesh

First of all, thanks for fast reply
Here are the steps

  1. Created very simple form. Administration > Layout > LBF. Checked "Show Products Section on Layout properties and added just one field (text-date). Result is something like this

  1. When clicking “Search product” there is a list but product are not visible nor selectable

Any idea?


I am testing development version 6.1 (2021-06-16). It gives me the same issue.

Red Hat Enterprise Linux release 8.4 (Ootpa)
PHP 7.4.20 (cli) (built: Jun 1 2021
Apache/2.4.37 (Red Hat Enterprise Linux) Server built: Jan 27 2021
mysql Ver 15.1 Distrib 10.3.28-MariaDB