Skip to content

Commit

Permalink
Fix search data showing null
Browse files Browse the repository at this point in the history
  • Loading branch information
wikumChamith committed Sep 30, 2024
1 parent 70771d4 commit d8b02a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ function OpenmrsSearch(div, showIncludeVoided, searchHandler, selectionHandler,
var cols = this.options.fieldsAndHeaders;
rRowData = $j.map(cols, function(c) {
var data = rowData[c.fieldName];
if(data == null)
if(data == null || data === "null")
data = " ";
//Escape html
data = $j('<div/>').text(data).html();
Expand Down

0 comments on commit d8b02a2

Please sign in to comment.