|
Got it using reflrector:
ConnectedLookupFieldEditor.cs, in method
public void OnSaveChange(SPField field, bool bNewField)
{
...
field2.LookupWebId = web.ID;
...
}
It fails because of check in base class SPFieldLookup:
public Guid LookupWebId
{
....
set
{
if (((base.Fields != null) && (base.Fields.Web != null)) && ((base.Fields.Web.ID != value) && (base.Fields.Web.Site != null)))
{
// surely it is not here, because our SideID is in other site collection 8(
base.Fields.Web.Site.AllWebs[value].Close();
}
base.SetFieldAttributeValue("WebId", value.ToString());
}
}
|