Work/notes form bug

bradymiller wrote on Saturday, August 22, 2009:

hey,

For some reason there is a ‘private’ option in this form. When selected it throws following error:
ERROR: insert failed: insert into form_note set pid = 2,groupname=‘Default’,user=‘admin’,authorized=1,activity=1, date = NOW(), note_type = ‘WORK NOTE’, message = ‘’, private = ‘on’, doctor = ’ Administrator’, date_of_signature = ‘2009-08-21’
Error: Unknown column ‘private’ in ‘field list’

This choice shouldn’t be here; not in database, and no mechanism for dealing with it by report.php, and can’t even tell who added it. I plan to comment this line out unless somebody’s got good reason (and fix) to keep it.

-brady

bradymiller wrote on Saturday, August 22, 2009:

correction: this is the ‘Work/School Note’ form

bradymiller wrote on Saturday, August 22, 2009:

hey,

Commented this out and committed to both the 3.1.0 branch and the development tip.  To support this would need a ‘private’ column in note table, and would need to then do something with the variable (can think about this in the development tip, but not appropriate to set up in the soon to be released 3.1.0 branch.

-brady