Skip to content

Commit

Permalink
Fix - LBF content width limited to 30 characters in Encounter Summary (
Browse files Browse the repository at this point in the history
…#434)





This bug reported on forum by Joel...

https://sourceforge.net/p/openemr/discussion/202505/thread/7f80799e/


The width of the LBF content in the Encounter Summary is being restricted (by a recent code change) to 30 characters.

* Part two
  • Loading branch information
epsdky authored and bradymiller committed Jan 19, 2017
1 parent 4e95eee commit f4bc697
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions interface/forms/LBF/report.php
Expand Up @@ -13,7 +13,7 @@
// when viewing a "comprehensive patient report". Also from
// interface/patient_file/encounter/forms.php.

function lbf_report($pid, $encounter, $cols, $id, $formname) {
function lbf_report($pid, $encounter, $cols, $id, $formname, $no_wrap = false) {
require_once($GLOBALS["srcdir"] . "/options.inc.php");
$arr = array();
$shrow = getHistoryData($pid);
Expand All @@ -33,7 +33,10 @@ function lbf_report($pid, $encounter, $cols, $id, $formname) {
if ($currvalue === '') continue;
// $arr[$field_id] = $currvalue;
// A previous change did this instead of the above, not sure if desirable? -- Rod
$arr[$field_id] = wordwrap($currvalue, 30, "\n", true);
// $arr[$field_id] = wordwrap($currvalue, 30, "\n", true);
// Hi Rod content width issue in Encounter Summary - epsdky
if($no_wrap) $arr[$field_id] = $currvalue; // Making wordwrap selectable - epsdky 2017
else $arr[$field_id] = wordwrap($currvalue, 30, "\n", true);
}
echo "<table>\n";
display_layout_rows($formname, $arr);
Expand Down
2 changes: 1 addition & 1 deletion interface/patient_file/encounter/forms.php
Expand Up @@ -636,7 +636,7 @@ function divtoggle(spanid, divid) {
//
if (substr($formdir,0,3) == 'LBF') {
include_once($GLOBALS['incdir'] . "/forms/LBF/report.php");
call_user_func("lbf_report", $pid, $encounter, 2, $iter['form_id'], $formdir);
call_user_func("lbf_report", $pid, $encounter, 2, $iter['form_id'], $formdir, true);
}
else {
include_once($GLOBALS['incdir'] . "/forms/$formdir/report.php");
Expand Down

0 comments on commit f4bc697

Please sign in to comment.