Open ponceta opened 2 months ago
When did you create your default values entries? We only set the default values on od (using tww_app.set_default_values) by using a trigger on tww_od.default_values. https://github.com/teksi/wastewater/blob/c7c7e36b71a8bbde9aa1da13dd17347300e74007/datamodel/app/functions/organisation_functions.sql#L57
Default values have been inserted :
But when the db queries it, it returns NULL :
Is it right to call it BEFORE
the INSERT
?
My current workaround is to define QGIS variables :
But this will require some project configurations and I would rather have a db working solution.
Describe the bug Database default values only work database side but are overwritten by QGIS
To Reproduce Exact steps to reproduce the behavior:
Expected behavior A user can define default fk_provider and fk_dataowner in QGIS too.
Screenshots / data
Desktop (please complete the following information):
Additional context Add any other context about the problem here.