Skip to content

Commit

Permalink
GIFT-274
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewNatoli committed Nov 22, 2017
1 parent 933f780 commit c852428
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class FeedbackModal extends React.Component {
<Modal.Title>Review Household</Modal.Title>
</Modal.Header>
<Modal.Body>
{household.address && (!household.address.cmpd_division || !household.address.cmpd_response_area) &&
<span style={{ fontWeight: 'bold' }}>Warning: Address is missing CMPD Division / Response Area<hr/></span>}
<Form
data={this.state.data}
handleFormSubmit={this.handleFormSubmit}
Expand Down
2 changes: 1 addition & 1 deletion server/apps/nominations/controllers/household.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {
whereClause = { name_last: { $like: `${query.search}%` } };
}

const attachmentRelation = [{ model: db.household_attachment, as: 'attachment_data' }];
const attachmentRelation = [{ model: db.household_attachment, as: 'attachment_data' }, { model: db.household_address, as: 'address' }];

const pullRelated = [...related, ...attachmentRelation];

Expand Down

0 comments on commit c852428

Please sign in to comment.