Layouts/LBF max length bug fix

bradymiller wrote on Saturday, May 19, 2012:

Hi,

Hoping to get review/feedback on the following bug fix:
http://github.com/bradymiller/openemr/commits/layout-max-length-fix_1

Here’s the forum thread that discusses this bug:
http://sourceforge.net/projects/openemr/forums/forum/202505/topic/5158498

The commit does the following:
-New fields created in layout engine use the TEXT sql type, when applicable.
-Added fld_rows to layout_options sql table to hold number of rows(height) for textarea datatype
   -Copied this value from max_length to fld_rows
-Added the size height and width and a maximum size (max_length) entry in layout editor
-The max_length entry value is what is used for validation
   -If it is set to 0, then no size checking
-Set all the entries based on a sql TEXT column to have a max_length of 0

So, basically, the maximum field length is set by the Maximum Size column in the Administration->Layout gui. And if this is set to 0, then there is no maximum limit.

-brady
OpenEMR

bradymiller wrote on Friday, May 25, 2012:

Hi,

This is testing well, so just committed it to sourceforge.

-brady
OpenEMR