Skip to content
Snippets Groups Projects
Commit a4846993 authored by CL's avatar CL
Browse files

Merge branch 'master' into 'master'

[event] add check for numeric

See merge request !2
parents f2150959 ae5bd596
Branches
Tags
1 merge request!2[event] add check for numeric
Pipeline #84273 failed with stages
in 15 seconds
......@@ -47,7 +47,7 @@ class EventsController extends Controller
'price_member' => ['required', 'numeric'],
"data" => ['required', 'array'],
"data.*.name" => ["required", "string", "distinct"],
"data.*.type" => ["required", "string", "in:string,boolean,select"],
"data.*.type" => ["required", "string", "in:string,boolean,select,numeric"],
"data.*.price" => ["required_if:data.*.type,boolean", "numeric"],
"data.*.price_member" => ["required_if:data.*.type,boolean", "numeric"],
"data.*.values" => ["required_if:data.*.type,select", "array"],
......
......@@ -3,7 +3,7 @@
"type": "project",
"description": "Management of stocks, member, accounting, sales, ...",
"license": "AGPL-3.0-or-later",
"version": "2.2.1",
"version": "2.2.2",
"require": {
"php": "^7.3|^8.0",
"amicale-core/seb-models": "dev-master",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment