liquid_feedback_frontend

diff app/main/registration/_register_form.lua @ 1350:a1a2f59e083e

Changed order of unit dropdown
author bsw
date Mon Aug 06 13:20:49 2018 +0200 (2018-08-06)
parents 21a2443c97d7
children 7532831a7618
line diff
     1.1 --- a/app/main/registration/_register_form.lua	Mon Aug 06 13:15:16 2018 +0200
     1.2 +++ b/app/main/registration/_register_form.lua	Mon Aug 06 13:20:49 2018 +0200
     1.3 @@ -96,13 +96,16 @@
     1.4      if field.where then
     1.5        units_selector:add_where(field.where)
     1.6      end
     1.7 -    local units = units_selector:exec()
     1.8 +    local units = {}
     1.9      if field.optional then
    1.10        table.insert(units, {
    1.11          id = "",
    1.12          name = _"None"
    1.13        })
    1.14      end
    1.15 +    for i_unit, unit in ipairs(units_selector:exec()) do
    1.16 +      table.insert(units, unit)
    1.17 +    end
    1.18      ui.field.select{
    1.19        label = field.label,
    1.20        foreign_records = units,

Impressum / About Us