Skip to content

Commit

Permalink
Merge #1983
Browse files Browse the repository at this point in the history
1983: fixing patient registration cashflow report pdf when non record match r=jniles

This PR help to fixe the patient registration cashflow report pdf when non record match.

Closes #1953.
  • Loading branch information
bors[bot] committed Aug 14, 2017
2 parents 9334064 + e8adf83 commit 5c2f712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/medical/reports/registrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function build(req, res, next) {

// if no patients matched the previous query, set the promise value to false
// and skip rendering aggregates in the handlbars view
if (!patients) { return false; }
if (patients.length === 0) { return false; }

// gather the uuids for the aggregate queries
const uuids = patients.map(p => db.bid(p.uuid));
Expand Down

0 comments on commit 5c2f712

Please sign in to comment.