Don't assume commerce_cart_form is the only views tag

Created on 25 September 2023, about 1 year ago

Problem/Motivation

The $view->storage->get('tag') returns a string that is compared to the commerce_cart_form, however, the tag can represent a list of tags and the Tags::explode should be used to convert it to an array.

Steps to reproduce

Add a tag to the view and the cart validation will stop working.

Proposed resolution

Use Tags::explode with in_array()

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom guy_schneerson

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

Comments & Activities

Production build 0.71.5 2024