Ask a questionAsk a question
 

AnswerIssue with Content Editor Web Part and UserField

  • Thursday, September 24, 2009 1:20 PMrebeccadietrich Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I have a pagelayout on a publishing portal that contains several web part zones and a SharePointWebControls:UserField to show the ReportOwner field.  I add a CEWP to any of the web part zones and edit the content using the rich text editor.  After clicking ok, the ReportOwner field contains html rather than the user name.  This seems to have started happening after we installed SP2 in May.  Has anyone else experienced this? 

    I've found one other reference to this issue and it's in this blog: http://vspug.com/teameli/2009/07/28/moss-2007-sp2-april-cu-publishing-bug/

    Here is the html that's showing up in the owner field (with username and domain removed):

    <span id='spanMYDOMAIN\USERID' tabindex='-1' contentEditable='false' class='ms-entity-resolved' title='MYDOMAIN\USERID' '><div style='display:none; ' id='divEntityData' key='MYDOMAIN\USERID' displaytext='LASTNAME, FIRSTNAME' isresolved='True' description='MYDOMAIN\USERID'><div data='<ArrayOfDictionaryEntry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><DictionaryEntry><Key xsi:type="xsd:string">DisplayName</Key><Value xsi:type="xsd:string">LASTNAME, FIRSTNAME</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">Email</Key><Value xsi:type="xsd:string">USERID@MYDOMAIN.com</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">SPUserID</Key><Value xsi:type="xsd:string">106</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">Department</Key><Value xsi:type="xsd:string">HUMAN RESOURCES-CH</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">Title</Key><Value xsi:type="xsd:string">SENIOR TRAINING SPECIALIST</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">PrincipalType</Key><Value xsi:type="xsd:string">User</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">SIPAddress</Key><Value xsi:type="xsd:string">EMAIL@MYDOMAIN.com</Value></DictionaryEntry></ArrayOfDictionaryEntry>'></div></div><span id='content' tabindex='-1' contenteditable onMouseDown='onMouseDownRw(); ' onContextMenu='onContextMenuSpnRw(); ' >LASTNAME, FIRSTNAME</span></span>



Answers

All Replies