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

Created on 1 December 2023, 7 months ago
Updated 7 December 2023, 7 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.69.0 2024