mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
APICHANGE: pass argument $includerelations into DataObject::fieldLabels() default as true;
APICHANGE: BulkLoader::getImportSpec() call DataObject::fieldLables() with $includerelations as false, so that the relations is separated from column fields git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@74858 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7402387e48
commit
900595c80d
@ -117,8 +117,8 @@ class PageComment extends DataObject {
|
|||||||
return self::$bbcode;
|
return self::$bbcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
function fieldLabels() {
|
function fieldLabels($includerelations = true) {
|
||||||
$labels = parent::fieldLabels();
|
$labels = parent::fieldLabels($includerelations);
|
||||||
$labels['Name'] = _t('PageComment.Name', 'Author Name');
|
$labels['Name'] = _t('PageComment.Name', 'Author Name');
|
||||||
$labels['Comment'] = _t('PageComment.Comment', 'Comment');
|
$labels['Comment'] = _t('PageComment.Comment', 'Comment');
|
||||||
$labels['IsSpam'] = _t('PageComment.IsSpam', 'Spam?');
|
$labels['IsSpam'] = _t('PageComment.IsSpam', 'Spam?');
|
||||||
|
Loading…
Reference in New Issue
Block a user