From d119d302e00492cd45f3e14f3341e2adb5125c15 Mon Sep 17 00:00:00 2001 From: Alvaro Campos Date: Mon, 24 Oct 2011 10:45:52 -0400 Subject: [PATCH] BUG 7898 problem solved with empty users after importing --- workflow/engine/classes/class.propelTable.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/workflow/engine/classes/class.propelTable.php b/workflow/engine/classes/class.propelTable.php index 1471c2c6e..e776ae458 100755 --- a/workflow/engine/classes/class.propelTable.php +++ b/workflow/engine/classes/class.propelTable.php @@ -396,12 +396,12 @@ class propelTable if(is_object($value)){ $value = ''; } - // checking if the value variable is a html field, a html tag content can't contain   as white spaces - + // checking if the value variable is a html field, a html tag content can't contain   as white spaces $testValue = preg_match( "/(.*)<\/a>/i", $htmlField, $value); - $this->tpl->assign( "value" , $htmlField ); - if ($testValue>0 && (isset($value[1]) && strlen(trim($value[1])) == 0 )) { - $this->tpl->assign( "value" , " " ); + $this->tpl->assign( "value" , $htmlField ); + if ($testValue>0 && (isset($value[1]) && strlen(trim($value[1])) == 0 )) { + if ((trim($value[0])) == '') + $this->tpl->assign( "value" , " " ); // $this->tpl->assign( "value" , (preg_match('^[[:space:]]^', $value) && (substr($fieldName,0,3)!="PRO"))? str_ireplace(" "," ",$htmlField):$htmlField ); } else { $this->tpl->assign( "value" , $htmlField );