From 0683a589f946fa254022fd0a9607b51dd89f5649 Mon Sep 17 00:00:00 2001 From: Hector Cortez Date: Mon, 9 Jul 2012 12:22:57 -0400 Subject: [PATCH] BUG 9369 In debug mode the content of an array variable is not display SOLVED - When using debug, in a process that has an array variable. in the List of variables the array content is not display. - Fixbug of the return value when the element is a array or object in debug window. --- workflow/engine/methods/cases/debug_vars.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/workflow/engine/methods/cases/debug_vars.php b/workflow/engine/methods/cases/debug_vars.php index 32b8b3a28..dbdc97d08 100755 --- a/workflow/engine/methods/cases/debug_vars.php +++ b/workflow/engine/methods/cases/debug_vars.php @@ -82,11 +82,8 @@ switch($request){ $return_object->totalCount=1; foreach ($aVariables as $i=>$var) { - if( is_object($var) ){ - $aVariables[$i] = ''; - } - if( is_array($var) ){ - $aVariables[$i] = ''; + if( is_array($var) || is_object($var) ) { + $aVariables[$i] = print_r($var, true); } }