Commit d7f11295 authored by Anatole Rakotoson's avatar Anatole Rakotoson
Browse files

element fix

parent 0897f8c7
...@@ -349,8 +349,8 @@ costumInputs.elementparents = { ...@@ -349,8 +349,8 @@ costumInputs.elementparents = {
} }
}, },
afterSave : function(data, searchExists) { afterSave : function(data, searchExists) {
//alert( "afterSave"+data.map.slug+" , "+ data.typeStruct ); // alert( "afterSave"+data.map.slug+" , "+ data.typeStruct );
//if(searchExists){ // if(searchExists){
var ex = false; var ex = false;
//create link only if doesn't allready exist //create link only if doesn't allready exist
if( jsonHelper.notNull("answerObj.answers.action.parents") ){ if( jsonHelper.notNull("answerObj.answers.action.parents") ){
...@@ -368,7 +368,7 @@ costumInputs.elementparents = { ...@@ -368,7 +368,7 @@ costumInputs.elementparents = {
collection : "answers", collection : "answers",
id : answerId, id : answerId,
arrayForm : true, arrayForm : true,
path : "answers.organizations", path : "answers.action.parents",
value : { value : {
type : data.type , type : data.type ,
id : data.id , id : data.id ,
......
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