mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Allow hyphens in API filter value (fixes #1333)
This commit is contained in:
parent
0dc37fb361
commit
82c474d0ae
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user