1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Change Code (API) bug ?

Change Code (API) bug ?

2 posts, 0 answered
  1. Jon
    Jon avatar
    41 posts
    Registered:
    20 Oct 2010
    28 Jan 2011
    Link to this post
    itemID = page5.Page.Id;
    vManager = VersionManager.GetManager();
    history = vManager.GetItemVersionHistory(itemID);
    first = history.First();     //<---- RETURNS EMPTY IList WHEN IT SHOULDN"T 
    change = new WcfChange(first);
    mod = change.CreatedByUserName;
    You gave me the code above to get the last user that modified a page, however, sometimes the code above returns an empty IList on a page. The page in question has been published and does have a history. Is this a bug ?

    Also page5.Page.LastModifiedBy is not working either ...

    Is there any other way of getting the name of the User that last modified a page ?

    Thanks in advance,
    jon


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    31 Jan 2011
    Link to this post
    Hi Jon,

    If you go to Page >> Version and History can you see the page version there? We use the same code to get the version item. If you see the page from the UI, you should see an item returned in the code sample we sent you.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered