liquid_feedback_frontend
changeset 1440:21477830970e
Handle cases where no unit is requested
author | bsw |
---|---|
date | Thu Oct 18 13:04:13 2018 +0200 (2018-10-18) |
parents | c4b235433733 |
children | ef6d09c45f4b |
files | app/main/registration_admin/verification.lua |
line diff
1.1 --- a/app/main/registration_admin/verification.lua Thu Oct 18 13:02:02 2018 +0200 1.2 +++ b/app/main/registration_admin/verification.lua Thu Oct 18 13:04:13 2018 +0200 1.3 @@ -90,7 +90,7 @@ 1.4 value = tonumber(data[field.name]) 1.5 } 1.6 local requested_unit = Unit:by_id(tonumber(verification.request_data.unit)) 1.7 - ui.tag{ content = requested_unit } 1.8 + ui.tag{ content = requested_unit or "-" } 1.9 elseif field.name == "sequential_number" then 1.10 ui.tag{ tag = "label", content = field.label } 1.11 slot.put(" ")