qwat / QWAT

TEKSI Water module (project QWAT) - QGIS project
https://www.teksi.ch
GNU General Public License v2.0
58 stars 31 forks source link

label_2_visible set to false by default instead of NULL #108

Closed ponceta closed 8 years ago

ponceta commented 8 years ago

Creating a new valve item generates a "false" value under the column label_2_visible which makes the saves impossible since integer is expected.

Does not appends when creating from the imported view (not the one set by default on the project).

Trying to fix it through ui forms/valve.ui via qt or .qgs project but did not manage to find a simple workaround yet.

Any hints are welcome!

ponceta commented 8 years ago

Does not come from the ui form.

ponceta commented 8 years ago

Found it :

Need to replace the wrong edittype for label_2_visible under the .qgs project under vw_element_valve into something like that

<edittype widgetv2type="ValueRelation" name="label_2_visible">
  <widgetv2config OrderByValue="0" AllowNull="0" FilterExpression="" UseCompleter="0" fieldEditable="1" Key="vl_code_int" Layer="vl_visible20130304110011703" Value="value_fr" labelOnTop="0" AllowMulti="0"/>
</edittype>

EDIT does not solve the issue

tudorbarascu commented 8 years ago

Hi, I cannot reproduce on master, so either the issue was present at one point in time or you modified the project somehow. Thus, a link to your zipped project + empty db model (or optionally the latest commit in your data model) would shed some light.

ponceta commented 8 years ago

Solved : value was not set as relationnal

image