Skip to content

Commit

Permalink
FLAG 67: fixed flags rendering issue on patient page (openmrs#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManojLL committed Jul 22, 2024
1 parent e08205c commit fea13fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ public SimpleObject processPatientFlags(@FragmentParam("patientId") Patient pati
intersection.retainAll(userRoles);
if (intersection.size() > 0) {
flag.setMessage(patientFlag.getMessage());
flagsString.append("<li><span style='").append(flag.getPriority().getStyle()).append("'>").append(flag.evalMessage(patient.getPatientId())).append("</span></li>");
flagsString.append("<li><span ").append(flag.getPriority().getStyle()).append(">").append(flag.evalMessage(patient.getPatientId())).append("</span></li>");
continue;
}
}
}

SimpleObject simpleObject = new SimpleObject();

simpleObject.put("", flagsString);
simpleObject.put("patientflags", flagsString);

return simpleObject;
}
Expand Down
2 changes: 1 addition & 1 deletion omod/src/main/webapp/fragments/patientflagsDashboard.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
if (!response) {
${ ui.message("coreapps.none ") }
} else {
jq("#flags").html(response.replace("{=", "").replace("}", ""));
jq("#flags").html(response.patientflags);
}
});
</script>
Expand Down

0 comments on commit fea13fe

Please sign in to comment.