If changing/editing the options of a dashboard button referring to a form template or results template, chosen-period and period-options are saved properly in the database. However, if trying to edit the same dash-button, both are not reloaded properly. Regardless of what is actually saved in the database, the displayed period-option is always "static" + period-option is the current date ("to") minus one week (from) [default values in function "get_dash_content(dash)"). Furthermore, if saving dashboard buttons referring to form templates or result templates with static dates, there is some en/de date mix-up happening in the SQL-table "dashboard, column "options", which my cause some trouble, e.g.:
There are some bugs regarding the saving/loading of options of dashboard buttons.
The corresponding values can be found in the SQL-table "dashboard" in column "options".
If changing/editing the options of a dashboard button referring to a form template or results template, chosen-period and period-options are saved properly in the database. However, if trying to edit the same dash-button, both are not reloaded properly. Regardless of what is actually saved in the database, the displayed period-option is always "static" + period-option is the current date ("to") minus one week (from) [default values in function "get_dash_content(dash)"). Furthermore, if saving dashboard buttons referring to form templates or result templates with static dates, there is some en/de date mix-up happening in the SQL-table "dashboard, column "options", which my cause some trouble, e.g.:
Some issues concerning en/de dates have been fixed in the past (https://github.com/madnetdev/regmon-os/commit/500f28d266b097cf825825f1706f6f642321af99). Maybe this helps.