Ghost/ghost/admin/app/validators
Michael Barrett ef0b863c2b
🐛 Fixed validation error when creating 0% offer (#16803)
closes https://github.com/TryGhost/Team/issues/3073

Fixed validation error when creating 0% offer. Issue was occurring due
to a falsy check on the offer value. Have resolved by having a more
strict check on the offer value based on the possible empty value it can
be - If creating a new offer without providing an offer value, the value
will be `undefined`. If supplying an offer value, then removing the
offer value, the value will be an empty string. This check prevents `0`
being classed as an invalid value.
2023-05-16 12:03:37 +01:00
..
mixins Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
base.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
custom-view.js Added default and custom post views (filters) to the admin sidebar (#1474) 2020-01-30 15:35:36 +00:00
integration.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
invite-user.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
label.js Added labels for Members (#1477) 2020-02-14 15:04:01 +05:30
member.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
nav-item.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
new-user.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
newsletter.js Updated newsletter management for switch to nullable sender_name 2022-04-15 09:43:22 +01:00
offer.js 🐛 Fixed validation error when creating 0% offer (#16803) 2023-05-16 12:03:37 +01:00
post.js Added post scheduling Playwright test and loosened time restrictions (#15960) 2022-12-07 17:29:36 +01:00
reset.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
setting.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
setup.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
signin.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
signup.js Update package.json details, rename module to ghost-admin 2016-06-03 16:12:54 +01:00
snippet.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
subscriber.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
tag-settings.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
tier-benefit-item.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
tier.js 🐛 Fixed Hidden error in "Add tier" modal (#15361) 2022-09-13 09:23:54 +01:00
user.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
webhook.js Added secret handling for webhooks (#13980) 2022-08-23 16:34:32 +01:00