Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Page Version History: blank "Author" field in 2.3.3


Go to End


2 Posts   1478 Views

Avatar
marco

Community Member, 3 Posts

27 October 2009 at 4:04am

Hi,

It seems that the "Author" field is not properly set within "Page Version History"
in Silverstripe 2.3.3. The "SiteTree_versions" database always shows "AuthorID"
to be "0". In version 2.3.2 the "Author" field was properly set. Comparing the code
base I see:

Version 2.3.2.
Versioned.php: $newManipulation['fields']['AuthorID'] = Member::currentUserID() ? Member::currentUserID() : 0;

Version 2.3.3.
Versioned.php: $userID = (Member::currentUser()) ? Member::currentUser()->ID : 0;
Versioned.php: $newManipulation['fields']['AuthorID'] = $userID;

Perhaps this change is responsible?

Avatar
marco

Community Member, 3 Posts

27 October 2009 at 4:46am