# HG changeset patch # User bsw # Date 1299192455 -3600 # Node ID 7e3acb2f6284988959369b5278357dfec05d120f # Parent acf92c2d33f406570e1d78910985197927467828 Disable current member as delegation target through initiatorship diff -r acf92c2d33f4 -r 7e3acb2f6284 app/main/lf2/delegation.lua --- a/app/main/lf2/delegation.lua Thu Mar 03 21:26:35 2011 +0100 +++ b/app/main/lf2/delegation.lua Thu Mar 03 23:47:35 2011 +0100 @@ -97,21 +97,26 @@ } end + disabled_records = {} + disabled_records["_"] = true + -- add saved members records[#records+1] = {id="_", name= "--- " .. _"Saved contacts" .. " ---"} for i, record in ipairs(contact_members) do records[#records+1] = record end + -- add initiative authors if initiative then records[#records+1] = {id="_", name= "--- " .. _"Initiators" .. " ---"} for i,record in ipairs(initiative.initiators) do records[#records+1] = record.member + if record.member.id == app.session.member_id then + disabled_records[record.member.id] = true + end end end - disabled_records = {} - disabled_records["_"] = true ui.box_row{ content = function() ui.box_col{ content = function()