Here is details of bug:
1. Miscellaneous->New Documents
2. Upload a new document
3. After uploading it, then click on the document and then rename it and then click the submit link near the rename element
4. Note the document now disappears (because the foreign_id in documents table gets changed from 0 to NULL).
5. The above fix basically makes it so that all documents with a foreign_id of 0 or NULL are considered documents not yet assigned to patient(so, the doc will not disappear when you rename it).
Hi,
Here's a proposed bug fix:
http://github.com/bradymiller/openemr/commit/be394a9098599bed243ae10287624c9e52350d81
Here is details of bug:
1. Miscellaneous->New Documents
2. Upload a new document
3. After uploading it, then click on the document and then rename it and then click the submit link near the rename element
4. Note the document now disappears (because the foreign_id in documents table gets changed from 0 to NULL).
5. The above fix basically makes it so that all documents with a foreign_id of 0 or NULL are considered documents not yet assigned to patient(so, the doc will not disappear when you rename it).
Testing well so far.
-brady
OpenEMR
Last edit: Brady Miller 2013-07-26
hi,
Above fix testing well, so committed to both master and rel-412 branches.
-brady
OpenEMR