BUG 7104 Fix Bug empty button in plugin Enterprise Edition.

-reverting changes, this hector commit was causing a lot of problems
This commit is contained in:
Erik Amaru Ortiz
2011-11-25 17:17:43 -04:00
parent 5fa57e95a3
commit 81d47f6dc2

View File

@@ -400,7 +400,7 @@ class propelTable
$testValue = preg_match( "/<a ?.*>(.*)<\/a>/i", $htmlField, $value);
$this->tpl->assign( "value" , $htmlField );
if ($testValue>0 && (isset($value[1]) && strlen(trim($value[1])) == 0 )) {
if ((trim($value[0])) == '' || trim($value[1]) == '')
if ((trim($value[0])) == '')
$this->tpl->assign( "value" , "&nbsp;" );
// $this->tpl->assign( "value" , (preg_match('^[[:space:]]^', $value) && (substr($fieldName,0,3)!="PRO"))? str_ireplace(" ","&nbsp;",$htmlField):$htmlField );
} else {