Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

FIX: updateCMSFields not accepting var by reference

updateCMSFields should be taking the fields var by reference.
@see silverstripe/silverstripe-framework#1156
  • Loading branch information...
commit e56a78b1605ea958d844b4efca507074d5050c71 1 parent 4269f94
@mandrew mandrew authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  code/model/SiteTreeFileExtension.php
2  code/model/SiteTreeFileExtension.php
@@ -9,7 +9,7 @@ class SiteTreeFileExtension extends DataExtension {
'BackLinkTracking' => 'SiteTree'
- public function updateCMSFields(FieldList $fields) {
+ public function updateCMSFields(FieldList &$fields) {
$fields->insertAfter(new ReadonlyField('BackLinkCount',
_t('AssetTableField.BACKLINKCOUNT', 'Used on:'),
$this->BackLinkTracking()->Count() . ' ' . _t('AssetTableField.PAGES', 'page(s)')),

2 comments on commit e56a78b


@mandrew, OMG, finally got you come up again. Where are you, still in UK?


@normann haha yip mate still in the UK and things going ok. Might see you later in the year though ; )

Please sign in to comment.
Something went wrong with that request. Please try again.