Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integer default answer accepts only text #2078

Open
Yelinz opened this issue Aug 10, 2022 · 0 comments
Open

integer default answer accepts only text #2078

Yelinz opened this issue Aug 10, 2022 · 0 comments

Comments

@Yelinz
Copy link
Member

Yelinz commented Aug 10, 2022

Screencast from 10.08.2022 13:49:40.webm
Video of the problem

        {
            "model": "caluma_form.question",
            "pk": "antrag-infrastruktur-antrag",
            "fields": {
                "created_at": "2021-09-01T09:05:12.412Z",
                "modified_at": "2022-07-20T08:04:30.965Z",
                "created_by_user": "214d4b40-d545-40c5-b216-f22bcd207090",
                "created_by_group": "admin",
                "modified_by_user": "785989df-253a-435d-9ff7-cda635bee6ff",
                "modified_by_group": "admin",
                "label": "{\"de\": \"Subventionsantrag\", \"en\": \"Subsidy Application\", \"fr\": \"Demande de subvention\"}",
                "type": "integer",
                "is_required": "true",
                "is_hidden": "false",
                "is_archived": false,
                "placeholder": "{\"de\": \"\", \"en\": \"CHF\", \"fr\": \"CHF\"}",
                "info_text": "{\"de\": \"Betrag gerundet (keine Nachkommastellen), in CHF.\", \"en\": \"Amount rounded (no decimal places), in CHF.\", \"fr\": \"Montant arrondi (pas de d\\u00e9cimales), en CHF.\"}",
                "hint_text": "{\"de\": \"\", \"en\": null, \"fr\": null}",
                "static_content": "{\"de\": \"\", \"en\": \"\", \"fr\": \"\"}",
                "configuration": {
                    "max_value": null,
                    "min_value": 0
                },
                "meta": {},
                "data_source": null,
                "row_form": null,
                "sub_form": null,
                "source": null,
                "format_validators": "[]",
                "default_answer": "0af42755-a11e-4d11-80cb-579e2413a743",
                "calc_expression": null,
                "calc_dependents": "[]"
            }
        },
        {
            "model": "caluma_form.answer",
            "pk": "0af42755-a11e-4d11-80cb-579e2413a743",
            "fields": {
                "created_at": "2021-09-01T09:05:28.450Z",
                "modified_at": "2022-07-22T12:44:36.858Z",
                "created_by_user": "4273b746-4c32-40f5-af5d-b8bad7e3e168",
                "created_by_group": "admin",
                "modified_by_user": "4273b746-4c32-40f5-af5d-b8bad7e3e168",
                "modified_by_group": "admin",
                "question": "antrag-infrastruktur-antrag",
                "value": 3200,
                "meta": {},
                "document": "f8d54c02-3128-4dc9-a410-552281d87524",
                "date": null,
                "file": null
            }
        },
                {
            "model": "caluma_form.document",
            "pk": "f8d54c02-3128-4dc9-a410-552281d87524",
            "fields": {
                "created_at": "2022-07-22T12:40:47.823Z",
                "modified_at": "2022-07-22T12:40:47.823Z",
                "created_by_user": "4273b746-4c32-40f5-af5d-b8bad7e3e168",
                "created_by_group": "admin",
                "modified_by_user": "4273b746-4c32-40f5-af5d-b8bad7e3e168",
                "modified_by_group": "admin",
                "family": "f8d54c02-3128-4dc9-a410-552281d87524",
                "form": "ausserordentliches-einzelgesuch",
                "source": null,
                "meta": {}
            }
        },
                {
            "model": "caluma_workflow.case",
            "pk": "3e9e65d8-e4b2-47da-b544-39db95d9f7bd",
            "fields": {
                "created_at": "2022-07-22T12:40:47.899Z",
                "modified_at": "2022-07-22T12:57:19.820Z",
                "created_by_user": "4273b746-4c32-40f5-af5d-b8bad7e3e168",
                "created_by_group": "admin",
                "modified_by_user": "4273b746-4c32-40f5-af5d-b8bad7e3e168",
                "modified_by_group": "admin",
                "family": "3e9e65d8-e4b2-47da-b544-39db95d9f7bd",
                "closed_at": "2022-07-22T12:57:19.806Z",
                "closed_by_user": "4273b746-4c32-40f5-af5d-b8bad7e3e168",
                "closed_by_group": "admin",
                "workflow": "document-review",
                "status": "canceled",
                "meta": {
                    "status": "revise"
                },
                "document": "f8d54c02-3128-4dc9-a410-552281d87524"
            }
        },

Data of question, answer, document and case
Not sure how the answer got linked to a document with a cancelled case aswell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant