Commit 8344c388 authored by Clément Damiens's avatar Clément Damiens
Browse files

fix live with costum contextualisé

parent 615b1501
...@@ -241,7 +241,7 @@ function startNewsSearch(isFirst){ ...@@ -241,7 +241,7 @@ function startNewsSearch(isFirst){
var urlCtrl = "/news/co/index/type/city/isLive/true"; var urlCtrl = "/news/co/index/type/city/isLive/true";
if(typeof liveParams != "undefined"){ if(typeof liveParams != "undefined"){
if(typeof liveParams.slug != "undefined" && notNull(costum)) if(typeof liveParams.slug != "undefined" && notNull(costum))
urlCtrl = "/news/co/index/type/"+costum.type+"/id/"+costum.id; urlCtrl = "/news/co/index/type/"+costum.contextType+"/id/"+costum.contextId;
if(typeof liveParams.formCreate != "undefined") if(typeof liveParams.formCreate != "undefined")
urlCtrl += "/formCreate/false"; urlCtrl += "/formCreate/false";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment