From b2f555acebb5b4ac177bde4d4a64ed17527a9596 Mon Sep 17 00:00:00 2001 From: humano Date: Thu, 29 Nov 2018 11:36:43 -0500 Subject: [PATCH] Correcion render json en planilla --- funciones/funciones.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/funciones/funciones.php b/funciones/funciones.php index 41d2fe3..3914ad9 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -2508,7 +2508,7 @@ return $resultado; } function json_render($contenido,$tipo,$control){ -$contenido = stripcslashes($contenido); +//$contenido = stripcslashes($contenido); $campos = "$tipo,$contenido"; $datos = json_decode($contenido, true); if ($tipo == "html"){ @@ -13788,9 +13788,10 @@ $campo_nombre = remplacetas('form_campos','id',$row['id_campo'],'campo_nombre', } elseif($campo_tipo=='24' ){ + $contenido = stripslashes($contenido); $contenido_full = json_render("$contenido","csv","$control"); - $valor_actual = json_render("$contenido","html","$control"); - $contenido = "$valor_actual"; + $valor_actual = json_render("$contenido","csv","$control"); + $contenido = "$valor_actual"; $campo_nombre[0] ="";} elseif($campo_tipo=='34') { if($contenido !=""){ @@ -14538,6 +14539,7 @@ if (mysqli_num_rows($sql)!='0'){ elseif($campo_tipo =="6" ) {$contenido =imprimir_buscador_campo($row[id_campo],$contenido) ;} elseif($campo_tipo=='29'){ $contenido="";} elseif($campo_tipo=='30'){ $contenido= json_render("$contenido_completo","html","$control");} + elseif($campo_tipo=='24'){ $contenido= json_render("$contenido_completo","csv","$control");} elseif($campo_tipo=='10'){ // $valor_actual = relacion_render("$formulario","$id_campo","$row[contenido]",'0','relacion_drop'); $contenido = relacion_render("$id","$row[id_campo]",$contenido,'5','relacion_print'); //$contenido= json_render("$contenido_completo","html","$control");}