Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

SPListItem RestoreByLabel method does not restore WP

$
0
0

Hi all,

We noticed a strange behaviour with Page Versioning.

I have a page which contains Rich Text field and a Content Editor Web Part, when I restore to a previous version using the Interface, the content of both the Rich Text & the Content Editor Web Part is restored. When I do the same thing using code:

myPage.Versions.RestoreByLabel(myLabelVersion);

Only the content of the Rich Text is restored. The Content Editor WP keeps the content of the last published version.

Am I missing something or does anyone see any reason for the code the behave differently than the interface?

Cheers,

Séb


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>