mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
FIX: Reports with Parameter fields override ReportTitle and ReportDescription
Fixes #696
This commit is contained in:
parent
79da34ff6e
commit
5024a48f89
@ -219,8 +219,8 @@ class SS_Report extends ViewableData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add search fields is available
|
// Add search fields is available
|
||||||
if($this->hasMethod('parameterFields') && $fields = $this->parameterFields()) {
|
if($this->hasMethod('parameterFields') && $parameterFields = $this->parameterFields()) {
|
||||||
foreach($fields as $field) {
|
foreach($parameterFields as $field) {
|
||||||
// Namespace fields for easier handling in form submissions
|
// Namespace fields for easier handling in form submissions
|
||||||
$field->setName(sprintf('filters[%s]', $field->getName()));
|
$field->setName(sprintf('filters[%s]', $field->getName()));
|
||||||
$field->addExtraClass('no-change-track'); // ignore in changetracker
|
$field->addExtraClass('no-change-track'); // ignore in changetracker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user