Value Map on a Date field: saved value isn’t shown in the feature form
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- android, ios
- 领域
- mobile
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- In the app, add a new feature in the trees layer.
- Tap inspection_date and select 2026-09-23 – Autumn.
- Save the feature.
- Open the feature (preview), then tap Edit.
- 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
- 主要语言
- C++
- 星标
- 390
- 派生
- 89
- 平均合并
- 4 天 23 小时
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MerginMaps/mobile 的其他 Issue
-
bluetooth bug
难度 2/5 1-3 小时 新手友好度 88/100
MerginMaps/mobile#4741 ·
维护者通常 1 天内回复
-
bug ui/ux
难度 2/5 1-3 小时 新手友好度 75/100
MerginMaps/mobile#4669 ·
维护者通常 1 天内回复
-
bug Good first issue ui/ux
难度 2/5 1-3 小时 新手友好度 72/100
MerginMaps/mobile#4665 ·
维护者通常 1 天内回复
-
bug ui/ux
难度 2/5 1-3 小时 新手友好度 68/100
MerginMaps/mobile#4647 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
MerginMaps/mobile#4763 ·
维护者通常 1 天内回复
查看 MerginMaps/mobile 的全部 Issue
相似的 Issue
-
backlog documentation
难度 2/5 1-3 小时 新手友好度 73/100
EchoTools/nevr-runtime#1328 ·
维护者通常 1 天内回复
-
Component - Build
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
HarbourMasters/Lighthouse#655 ·
维护者通常 1 天内回复
-
bug-unconfirmed
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复