liquid_feedback_frontend

diff app/main/member/_profile.lua @ 1488:ce812dccaac2

Work without configured profile fields
author bsw
date Mon Jan 07 19:16:30 2019 +0100 (2019-01-07)
parents 32cc544d5a5b
children
line diff
     1.1 --- a/app/main/member/_profile.lua	Mon Jan 07 19:15:42 2019 +0100
     1.2 +++ b/app/main/member/_profile.lua	Mon Jan 07 19:16:30 2019 +0100
     1.3 @@ -37,9 +37,11 @@
     1.4      end
     1.5      if member.profile then
     1.6        local profile = member.profile.profile or {}
     1.7 -      for i, field in ipairs(config.member_profile_fields) do
     1.8 -        if profile[field.id] and #(profile[field.id]) > 0 then
     1.9 -          ui.field.text{ label = field.name, name = field.id, value = profile[field.id] }
    1.10 +      if config.member_profile_fields then
    1.11 +        for i, field in ipairs(config.member_profile_fields) do
    1.12 +          if profile[field.id] and #(profile[field.id]) > 0 then
    1.13 +            ui.field.text{ label = field.name, name = field.id, value = profile[field.id] }
    1.14 +          end
    1.15          end
    1.16        end
    1.17      end

Impressum / About Us