Commerce: getAllShippingZones() does not return all shipping zones.

Created on 10 Sep 2020  路  1Comment  路  Source: craftcms/commerce

Description

When calling getAllShippingZones(), then saveShippingZone() and finally another getAllShippingZones(), it does not show the saved one.

Maybe updating _fetchedAllShippingZones to false,
Or adding the saved one into the _allShippingZones array.

Expected behavior
The last getAllShippingZones() should return the shippingZone saved before.

Additional info

  • Craft version: 3.5.9
  • Commerce version: 3.2.4
  • PHP version: 7.2
  • Database driver & version: Mysql 5.6
  • Other Plugins & versions: -
馃悶 bug 馃摤 shipping

Most helpful comment

Hi @cgivord

Thank you for bringing this to our attention.

We have pushed up a fix for this which will be included in the next Commerce release.

Thanks!

>All comments

Hi @cgivord

Thank you for bringing this to our attention.

We have pushed up a fix for this which will be included in the next Commerce release.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings