CurrentStore and CurrentCountry are not guaranteed to return values.

Created on 11 February 2018, over 6 years ago
Updated 19 March 2024, 6 months ago

A bad import might have left the site without a default store.
The default country might be unspecified.

In both cases the services will return NULL, which is not documented on the interfaces.

I suggest documenting NULL for the CurrentCountry, and throwing an exception inside CurrentStore, since we do want to have a store at all times.

🐛 Bug report
Status

Needs work

Version

2.0

Component

Store

Created by

🇷🇸Serbia bojanz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024