liquid_feedback_frontend
diff app/main/delegation/new.lua @ 180:02aacb3dffe0
Added support for null delegation in upcoming core release
| author | bsw | 
|---|---|
| date | Sun Oct 31 23:38:43 2010 +0100 (2010-10-31) | 
| parents | bf885faf3452 | 
| children | 02197b85ca3b | 
   line diff
1.1 --- a/app/main/delegation/new.lua Sun Oct 31 23:38:23 2010 +0100 1.2 +++ b/app/main/delegation/new.lua Sun Oct 31 23:38:43 2010 +0100 1.3 @@ -76,12 +76,41 @@ 1.4 } 1.5 }, 1.6 content = function() 1.7 - local records = { 1.8 - { 1.9 - id = "-1", 1.10 - name = _"No delegation" 1.11 + local records 1.12 + 1.13 + if issue then 1.14 + records = { 1.15 + { 1.16 + id = -1, 1.17 + name = _"Inherit delegation from area" 1.18 + }, 1.19 + { 1.20 + id = 0, 1.21 + name = _"No delegation (override area delegation)" 1.22 + }, 1.23 + 1.24 } 1.25 - } 1.26 + elseif area then 1.27 + records = { 1.28 + { 1.29 + id = -1, 1.30 + name = _"Inherit global delegation" 1.31 + }, 1.32 + { 1.33 + id = 0, 1.34 + name = _"No delegation (override global delegation)" 1.35 + } 1.36 + } 1.37 + 1.38 + else 1.39 + records = { 1.40 + { 1.41 + id = -1, 1.42 + name = _"No delegation" 1.43 + } 1.44 + } 1.45 + 1.46 + end 1.47 1.48 for i, record in ipairs(contact_members) do 1.49 records[#records+1] = record