Change Code (API) bug ?

Posted by Community Admin on 03-Aug-2018 18:41

Change Code (API) bug ?

All Replies

Posted by Community Admin on 28-Jan-2011 00:00

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


Posted by Community Admin on 31-Jan-2011 00:00

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

This thread is closed