Skip to content

Commit

Permalink
Disable validations on presence of belongsTo relation
Browse files Browse the repository at this point in the history
Disable validations until
adopted-ember-addons/ember-cp-validations#651 is fixed
  • Loading branch information
erikap committed Aug 22, 2019
1 parent 63eeb75 commit 1e46feb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/models/deposit-invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const Validations = buildValidations({
positive: true
})
],
vatRate: validator('presence', true)
// Enable validation once https://github.com/offirgolan/ember-cp-validations/issues/651 is fixed
// vatRate: validator('presence', true)
});

export default DS.Model.extend(Validations, {
Expand Down
3 changes: 2 additions & 1 deletion app/models/invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const Validations = buildValidations({
allowBlank: true,
positive: true
}),
vatRate: validator('presence', true)
// Enable validation once https://github.com/offirgolan/ember-cp-validations/issues/651 is fixed
// vatRate: validator('presence', true)
});

export default DS.Model.extend(Validations, {
Expand Down

0 comments on commit 1e46feb

Please sign in to comment.