Jump to:

23488 Posts in 18005 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Page Version History: blank "Author" field in 2.3.3

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

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

Page: 1
Go to End
Author Topic: 845 Views
  • marco
    Avatar
    Community Member
    3 Posts

    Page Version History: blank "Author" field in 2.3.3 Link to this post

    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?

  • marco
    Avatar
    Community Member
    3 Posts
    845 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.