Ghost/ghost/core/test/unit
Naz 9390f0953f
Fixed {{price}} helper to render empty instead of throwing
refs https://github.com/TryGhost/Toolbox/issues/497
refs fb7532bf5d

- We downgraded the 'GS090-NO-PRICE-DATA-CURRENCY-CONTEXT' rule in gscan to non-fatal, meaning Ghost should not be throwing an error but instead render an empty value for {{price}} helper when price data is empty.
- For example, a legacy syntax like this: '{{price currency=@price.currency}}' should not cause a page render error but return an empty price string.
- The pattern of returning an empty string instead of crashing is used in other helpers like {{img_url}} and and {{url}}
2023-01-31 21:01:19 +08:00
..
api/canary Removed bluebird dependency from unit tests in core (#16096) 2023-01-23 11:23:48 +00:00
frontend Fixed {{price}} helper to render empty instead of throwing 2023-01-31 21:01:19 +08:00
server Added mentions permissions (#16200) 2023-01-31 16:40:44 +08:00
shared Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00