g3w-suite / g3w-admin

Server module for G3W-SUITE
https://g3w-suite.readthedocs.io/en/latest/g3wsuite_administration.html
Mozilla Public License 2.0
40 stars 34 forks source link

ValueRelation editing widget option `UseCompleter` fail. #785

Closed wlorenzetti closed 6 months ago

wlorenzetti commented 6 months ago

Checklist

Subject of the issue

If a field of a layer has a ValueRelation widget active, is it possible set for it the User completer on QGIS desktop interface:

Screenshot_20240321_164734

the relative /vector/api/config repsonse for the layer return the usecompleter property:

 "input": {
       "type": "select_autocomplete",
        "options": {
          "values": [],
           "default": null,
            "key": "name",
            "value": "code",
            "usecompleter": false,
            "layer_id": "roads_ea006d6f_bd87_4635_aae0_4e9e7842b3f4",
            "loading": {
              "state": null
            },
            "filter_expression": null
 }

checking the UseCompleter :

Screenshot_20240321_165517

the API response contain again usecompleter set to true

 "input": {
       "type": "select_autocomplete",
        "options": {
          "values": [],
           "default": null,
            "key": "name",
            "value": "code",
            "usecompleter": false,
            "layer_id": "roads_ea006d6f_bd87_4635_aae0_4e9e7842b3f4",
            "loading": {
              "state": null
            },
            "filter_expression": null
 }

Steps to reproduce

  1. go to public-building-management-demo/layers
  2. download the project
  3. modify the ValueRelation UserCompleter parameter
  4. save again the project in G3W-SUITE
  5. check /vector/api/config/qdjango/336/buildings_2f43dc1d_6725_42d2_a09b_dd446220104a/

Environment

Link to your project

No response

Additional info

No response