mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR new sidereports for CMSWorkflow
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@83695 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
59f0eda007
commit
dc6d0dfad7
@ -32,11 +32,13 @@ abstract class SideReport extends Object {
|
||||
);
|
||||
}
|
||||
|
||||
$val = isset($fieldInfo['prefix']) ? $fieldInfo['prefix'] : '';
|
||||
|
||||
$fieldName = ereg_replace('[^A-Za-z0-9]+','',$fieldTitle);
|
||||
if(is_string($fieldSource)) {
|
||||
$val = Convert::raw2xml($record->$fieldSource);
|
||||
$val .= Convert::raw2xml($record->$fieldSource);
|
||||
} else {
|
||||
$val = $record->val($fieldSource[0], $fieldSource[1]);
|
||||
$val .= $record->val($fieldSource[0], $fieldSource[1]);
|
||||
}
|
||||
|
||||
if(isset($fieldInfo['newline']) && $fieldInfo['newline']) $result .= "<br>";
|
||||
@ -47,6 +49,8 @@ abstract class SideReport extends Object {
|
||||
} else {
|
||||
$result .= "<span class=\"$fieldName\">$val</span>";
|
||||
}
|
||||
|
||||
$val .= isset($fieldInfo['suffix']) ? $fieldInfo['suffix'] : '';
|
||||
}
|
||||
$result .= "\n</li>\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user