"fixed lost right align in nextmatch sort headers, if they are active"

This commit is contained in:
Ralf Becker 2008-10-22 07:06:45 +00:00
parent 1d549d1dcc
commit fa6ab9b7a1

View File

@ -797,6 +797,7 @@ class etemplate extends boetemplate
{
continue; // col is disabled
}
$align_was = $cell['align'];
$row_data[$col] = $this->show_cell($cell,$content,$readonlys,$cname,$c,$r,$span,$cl,$path.'/'.$r_key.$c_key);
if ($row_data[$col] == '' && $this->rows == 1)
@ -832,7 +833,7 @@ class etemplate extends boetemplate
$opts[$col] = "0,$disable";
}
}
$row_data[".$col"] .= html::formatOptions($cell['align']?$cell['align']:'left','align');
$row_data[".$col"] .= html::formatOptions($cell['align']?$cell['align']:($align_was?$align_was:'left'),'align');
// allow to set further attributes in the tablecell, beside the class
if (is_array($cl))
{