# HG changeset patch # User bsw # Date 1289175166 -3600 # Node ID 19fbc5c758b57b22f107373662beda6b7b2fe056 # Parent 28e36958c7c6f1a6171c559a0e0236e7e4b04e04 Fixed errors when displaying null delegation targets diff -r 28e36958c7c6 -r 19fbc5c758b5 app/main/delegation/_list.lua --- a/app/main/delegation/_list.lua Mon Nov 08 00:43:37 2010 +0100 +++ b/app/main/delegation/_list.lua Mon Nov 08 01:12:46 2010 +0100 @@ -59,11 +59,15 @@ if incoming then delegation_scope(delegation) else - execute.view{ - module = "member", - view = "_show_thumb", - params = { member = delegation.trustee } - } + if delegation.trustee then + execute.view{ + module = "member", + view = "_show_thumb", + params = { member = delegation.trustee } + } + else + ui.tag{ content = _"Delegation abandoned" } + end end end } diff -r 28e36958c7c6 -r 19fbc5c758b5 app/main/delegation/new.lua --- a/app/main/delegation/new.lua Mon Nov 08 00:43:37 2010 +0100 +++ b/app/main/delegation/new.lua Mon Nov 08 01:12:46 2010 +0100 @@ -83,7 +83,7 @@ local scope = "no delegation set" local area_delegation = Delegation:by_pk(app.session.member_id, issue.area_id) if area_delegation then - delegate_name = area_delegation.trustee.name + delegate_name = area_delegation.trustee and area_delegation.trustee.name or _"abandoned" scope = _"area" else local global_delegation = Delegation:by_pk(app.session.member_id)