Error "The currency %value is not available." even if currency is present

Created on 1 December 2023, 12 months ago
Updated 7 December 2023, 12 months ago

Problem/Motivation

The CurrencyConstraintValidator throws the CurrencyConstraint::$notAvailableMessage error, even if the currency is configured.

Steps to reproduce

  • Create currency
  • Create some entity with currency field
  • Save entity

Proposed resolution

The error occurs, because there is a key-value mismatch when checking availability here. The solution is to check with array_key_exists.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇦🇹Austria daniel.pernold

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

Comments & Activities

Production build 0.71.5 2024