Don't delete per-hour stats and handle form submit button

This commit is contained in:
emanuele-f 2020-04-29 11:54:07 +02:00
parent acb23221e2
commit ae07188dd7
8 changed files with 53 additions and 9 deletions

View file

@ -3374,7 +3374,7 @@ end
function generate_select(id, name, is_required, is_disabled, options, additional_classes)
local required_flag = (is_required and "required" or "")
local disabled_flag = (is_disabled and "disabled" or "")
local name_attr = (name == "" and "name='" .. name .. "'" or "")
local name_attr = (name ~= "" and "name='" .. name .. "'" or "")
local parsed_options = ""
for i, option in ipairs(options) do