Facility Fax/Options not saving?

fred0 wrote on Wednesday, December 26, 2007:

First up, hello and happy holidays to everyone. I’ve been kind of off the radar since initially getting involved with deploying openemr in 2005 and contributing the OSX guide in 2006.

With the end of year upon us, I am about to update to 2.8.3 and add SQL-Ledger to the install. I’d been keeping up with the updates, but hadn’t noticed an issue previously that seems to be in (at least) 2.8.2 and 2.8.3.

Specifically, the fax field and check boxes in the facility settings fail to save. I’ve tried this with both my updated database/oemr and with a clean install. I set the options, hit update and the page returns with those options back to null values. Looking at the database, I see the fields empty. If I use phpmyadmin to set them directly and then go back to oemr and load the facility page, they show blank/null. If I then try to set them again, it overwrites and erases the values I added via phpmyadmin.

Has anybody else had a problem with this? I can find no mention in either forum, which seems odd if it’s not just me. Since I suspect it’s something in the php code (I’m not a programmer and don’t have the free time now to really dig into it anyway) I would think someone else might have also come across it. Our facility needs to check all 3 boxes for Billing Location, Service Location & Accepts Assignment.

Thanks!

Frederick

fred0 wrote on Saturday, December 29, 2007:

Ok, gonna answer my question again. For those who might also be experiencing this, here’s the solution:

In the openemrsrcdir/interface/usergroup/facility_admin.php file you need to make these changes:

Line 56 to 63 change to become:
<tr>
    <td width=“24”><span class=text><? xl(‘Name’,‘e’); ?>: </span></td><td width=“120”><input type=entry name=facility size=20 value="<?=$facility[‘name’]?>"></td><td rowspan=“10” width=“15”></d>
    <td><span class=text><? xl(‘Phone’,‘e’); ?> <? xl(‘as’,‘e’); ?> (000) 000-0000:</span></td><td width=“210”><input type=entry name=phone size=20 value="<?=$facility[‘phone’]?>"></td>
</tr>
<tr>
        <td>&nbsp;</td><td>&nbsp;</td>
        <td><span class=text><? xl(‘Fax’,‘e’); ?> <? xl(‘as’,‘e’); ?> (000) 000-0000:</span></td><td width=“210”><input type=entry name=fax size=20 value="<?=$facility[‘fax’]?>"></td>
</tr>

Line 81 to 93 change to become:
<tr>
  <td><span class=‘text’><?php xl(‘Billing Location’,‘e’); ?>: </span></td>
  <td><input name=billing_location value=“1” type=checkbox <?php if ($facility{‘billing_location’}) echo “checked”?>></td>
 
  <td rowspan=‘2’><span class=‘text’><?php xl(‘Accepts Assignment’,‘e’); ?><br>(<?php xl(‘only if billing location’,‘e’); ?>): </span></td>
  <td><input name=accepts_assignment value=“1” type=checkbox <?php if ($facility{‘accepts_assignment’} == 1) echo “checked”?>></td>
</tr>

<tr>
  <td><span class=‘text’><?php xl(‘Service Location’,‘e’); ?>: </span></td>
  <td><input name=service_location value=“1” type=checkbox <?php if ($facility{‘service_location’} == 1) echo “CHECKED”?>></td>
  <td>&nbsp;</td>
</tr>

sunsetsystems wrote on Sunday, December 30, 2007:

Thanks Fred!  I have updated the script in CVS accordingly.

Rod
www.sunsetsystems.com