counter fixes

This commit is contained in:
2014-03-10 10:10:54 +01:00
parent a2ce77e9e1
commit c4e002104c
6 changed files with 89 additions and 36 deletions
+1 -2
View File
@@ -202,8 +202,7 @@ class UserController < ApplicationController
render json: json_response(list_active: false)
return
else
list_obj = list.as_json.merge(list_active: list.active? ).merge(list.join_requests_as_json)
render json: json_response(list_obj)
render json: json_response(list.serialized_with_status_join_requests_and_supplier_counters)
end
else
render json: json_response(not_present: true)