ecamp / ecamp/ecamp3

Material: es kann kein Text bei «Menge» angegeben werden

Open
#4,730 1 comment 0 reactions 0 assignees View on GitHub
agents:ignore External feedback Feature request
Dominant language
PHP
Stars
156
Forks
72
Avg merge
12h 43m
Merged PRs (30d)
203

Description

Wenn man beim Material bei `Menge` den Wert `2-4` angibt und anschliessend hinzufügt, wird als Wert nur `2` gespeichert.

|vorher|nachher|
|---|---|
|![image](https://github.com/ecamp/ecamp3/assets/73113302/3f24b34b-c017-4da4-80f4-3542766189de)|![image](https://github.com/ecamp/ecamp3/assets/73113302/2a7a1ccc-ac99-4ec5-8cb6-2ac17542d12f)|

Nach vielem austesten scheint es, als würde nur der erste Zahlenwert angenommen werden. Dabei macht die Fehlermeldung `The type of the "quantity" attribute must be "float", "string" given.` keinen Sinn, da gar kein `"string"` Wert (Text) angegeben werden kann.

---
Build: eCamp [e11a0c3 ](https://github.com/ecamp/ecamp3/commit/e11a0c3)Di 23.01.2024 15:38
Browser: Brave v1.63.162

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Reproduce the issue by entering `2-4` in the material `Menge` field, then trace how the quantity is validated and saved. Done means the entered range is preserved, or the validation message accurately explains the supported input.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.