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

Documents to be attached not always shown within query results tab #609

Closed
1 task done
Raruto opened this issue Apr 12, 2024 · 2 comments · Fixed by #612
Closed
1 task done

Documents to be attached not always shown within query results tab #609

Raruto opened this issue Apr 12, 2024 · 2 comments · Fixed by #612
Assignees
Labels
bug Something isn't working

Comments

@Raruto
Copy link
Collaborator

Raruto commented Apr 12, 2024

Checklist

  • I've searched through the existing issues and this bug has never been reported before

Subject of the issue

The documents tab is not always shown within query results:

image

image

Steps to reproduce

I don't know if it's related, the first image is result of "Query Layer" and the second of "Query BBOX Layer" map control:

image

Environment

[g3wsdk.info]

  • g3w-admin: v3.7.7
  • g3w-client: 3.9.6
  • browser: Firefox 124.0
  • operating system: Windows 10 64-bit

Link to your project

https://v37.g3wsuite.it/en/map/g3w-suite-demo/qdjango/288/

Additional info

No response

@Raruto Raruto added the bug Something isn't working label Apr 12, 2024
@volterra79
Copy link
Member

volterra79 commented Apr 12, 2024

@Raruto is not an issue. Document tab is related to an expresion value.

request : /api/expression_eval/97/

{
    "qgs_layer_id": "buildings_2f43dc1d_6725_42d2_a09b_dd446220104a",
    "form_data": {
        "type": "Feature",
        "geometry": {
            "type": "MultiPolygon",
            "coordinates": [
                [
                    [
                        [
                            1252211.1702177,
                            5433513.77620651
                        ],
                        [
                            1252209.74370291,
                            5433546.11054184
                        ],
                        [
                            1252274.88787849,
                            5433536.60044321
                        ],
                        [
                            1252273.93686863,
                            5433506.16812761
                        ],
                        [
                            1252211.1702177,
                            5433513.77620651
                        ]
                    ]
                ]
            ]
        },
        "properties": {
            "fid": "62",
            "name": "awrar",
            "address": "NULL",
            "year": "2017",
            "photo": "NULL",
            "link": "NULL",
            "form": "NULL",
            "high": "12",
            "volume": "0",
            "surface": "1044.46",
            "architectural_barriers": "false",
            "date_barriers": "2024/03/26",
            "safety_exits": "false",
            "date_exits": "NULL",
            "fire_system": "true",
            "date_fire": "2023/06/06",
            "type": "Commercial",
            "attachment": "true",
            "subtype": "B4",
            "user": "viewer1",
            "description": "<p>sdag nsffgn</p>"
        },
        "id": "62"
    },
    "expression": "fire_system = 'Checked'",
    "formatter": 1
}

if the result is 1, Document is show otherwise is hide.

@Raruto
Copy link
Collaborator Author

Raruto commented Apr 12, 2024

@volterra79 I also suspect it's something related to the server cache (or some malformed value after using the editing plugin on that field).

However, as you can see from the images:

  1. Documents to be attached: True → the documents tab is missing
  2. Documents to be attached: 1 → the documents tab is shown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants