liquid_feedback_frontend

view model/initiator.lua @ 24:81586ea68d57

Minor bugfixes

app/main/initiative/_list.lua:
Replaced single by optional object mode

locale/translations.de.lua:
Consistent translation

app/main/initiative/_show.lua:
Added missing case "not approved" in voting info box

app/main/initiative/_show_voting.lua:
Added link to initiative

app/main/initiative/_show_voting.lua:
Added missing argument for link

app/main/member/show_tab.lua:
Added outgoing argument to show outgoing delegations correctly
author bsw
date Sun Feb 21 14:09:11 2010 +0100 (2010-02-21)
parents 3bfb2fcf7ab9
children 18e8de7a2b6a
line source
1 Initiator = mondelefant.new_class()
2 Initiator.table = 'initiator'
3 Initiator.primary_key = { "initiative_id", "member_id" }
5 Initiator:add_reference{
6 mode = 'm1',
7 to = "Initiative",
8 this_key = 'initiative_id',
9 that_key = 'id',
10 ref = 'initiative',
11 }
13 Initiator:add_reference{
14 mode = 'm1',
15 to = "Member",
16 this_key = 'member_id',
17 that_key = 'id',
18 ref = 'member',
19 }
21 function Initiator:by_pk(initiative_id, member_id)
22 return self:new_selector()
23 :add_where{ "initiative_id = ?", initiative_id }
24 :add_where{ "member_id = ?", member_id }
25 :optional_object_mode()
26 :exec()
27 end

Impressum / About Us