Commit 55eeefc5 authored by Raph El's avatar Raph El
Browse files

Hotfix address

parent 84ac6d75
...@@ -40,6 +40,7 @@ if($mode == "r" || $mode == "pdf"){ ?> ...@@ -40,6 +40,7 @@ if($mode == "r" || $mode == "pdf"){ ?>
// 137 rue des villages, Cangey // 137 rue des villages, Cangey
var cplxAddObj ={}; var cplxAddObj ={};
var keyAdd ="<?php echo $kunik ?>"; var keyAdd ="<?php echo $kunik ?>";
var pathAdd ="<?php echo $form['id'].'.'.$key ; ?>";
var valueAdd =<?php echo json_encode( $value ); ?>; var valueAdd =<?php echo json_encode( $value ); ?>;
jQuery(document).ready(function() { jQuery(document).ready(function() {
mylog.log("render form input","/modules/costum/views/tpls/forms/cplx/address.php"); mylog.log("render form input","/modules/costum/views/tpls/forms/cplx/address.php");
...@@ -64,7 +65,7 @@ if($mode == "r" || $mode == "pdf"){ ?> ...@@ -64,7 +65,7 @@ if($mode == "r" || $mode == "pdf"){ ?>
var answer = { var answer = {
collection : "answers", collection : "answers",
id : answerObj._id.$id, id : answerObj._id.$id,
path : "answers."+keyAdd path : "answers."+pathAdd
}; };
answer.value = cplxAddObj.result; answer.value = cplxAddObj.result;
......
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