Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Value Map on a Date field: saved value isn’t shown in the feature form

Aperta
#4,758 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, ios
Ambito
mobile

Direzione di ricerca

Start by tracing how the feature form reads and displays Date fields with QGIS Value Maps; the issue does not name source files or tests. Compare that path with the working Integer, Decimal, Text, and Boolean Value Map fields, then reproduce using the trees layer’s inspection_date field. Done when the saved date description appears in preview and edit and its entry is selected.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug forms

Description
When a Date field uses a Value Map, the selected value is saved correctly, but after saving the field is shown empty in the app’s feature form.
In QGIS the saved date matches the Value Map entry and its description is shown, so the data is correct and only the display in the app is affected.
Other field types with a Value Map (Integer, Decimal, Text, Boolean) work correctly.
Project: tester-ws-1 / test_tree_survey

Environment
Staging/ Production

Application (+ app version, build, operating system)
Mergin Maps iOS /Android — 2026.5.0
iOS: 26.0 / Android: 16

Steps to reproduce

  1. In the app, add a new feature in the trees layer.
  2. Tap inspection_date and select 2026-09-23 – Autumn.
  3. Save the feature.
  4. Open the feature (preview), then tap Edit.
  5. Sync the project and open the attribute table in QGIS.

Actual results
Step 2: ✅ the field shows 2026-09-23 – Autumn.
Step 4: ❌ inspection_date is empty in the form.
Step 5: ✅ the date is saved correctly in QGIS and matches the Value Map (the description is shown).

Expected results
After saving, the app shows the saved value’s description (2026-09-23 – Autumn) in preview and edit, and the entry is marked as selected in the list, the same as QGIS.

Screenshots

https://github.com/user-attachments/assets/281bec93-7f76-40aa-ace8-cce232cb19b7

Lingua principale
C++
Stelle
390
Fork
89
Merge medio
4g 12h
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MerginMaps/mobile

Tutte le issue di MerginMaps/mobile

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.