liquid_feedback_frontend

diff app/main/delegation/_action/update.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 afd9f769c7ae
children 73dbc9e2bfd4 e3613831cd1e
line diff
     1.1 --- a/app/main/delegation/_action/update.lua	Sun Oct 31 23:38:23 2010 +0100
     1.2 +++ b/app/main/delegation/_action/update.lua	Sun Oct 31 23:38:43 2010 +0100
     1.3 @@ -43,8 +43,11 @@
     1.4        delegation.scope = "global"
     1.5      end
     1.6    end
     1.7 -
     1.8 -  delegation.trustee_id = trustee_id
     1.9 +  if trustee_id == 0 then
    1.10 +    delegation.trustee_id = nil
    1.11 +  else
    1.12 +    delegation.trustee_id = trustee_id
    1.13 +  end
    1.14  
    1.15    delegation:save()
    1.16  

Impressum / About Us