Allow hyphens in API filter value (fixes #1333)

This commit is contained in:
Bernd Bestel 2021-07-04 17:48:58 +02:00
parent 0dc37fb361
commit 82c474d0ae
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 2 additions and 1 deletions

View File

@ -75,3 +75,4 @@
- Added a new API endpoint `/system/localization-strings` to get the localization strings (gettext JSON representation; in the by the user desired language)
- Fixed that due soon products with `due_type` = "Expiration date" were missing in `due_products` of the `/stock/volatile` endpoint
- Fixed that `PUT/DELETE /objects/{entity}/{objectId}` produced an internal server error when the given object id was invalid (now returns `400 Bad Request`)
- Fixed that hyphens in filter values did not work

View File

@ -12,7 +12,7 @@ class BaseApiController extends BaseController
const PATTERN_OPERATOR = '!?(=|~|<|>|(>=)|(<=)|(§))';
const PATTERN_VALUE = '[A-Za-z_0-9.$#^|]+';
const PATTERN_VALUE = '[A-Za-z_0-9.$#^|-]+';
public function __construct(\DI\Container $container)
{