Removed .HasRecords check in Picker Relations datatype as not supported by SQL CE (and not required). (Left Picker Relations exlcuded from the project)
This commit is contained in:
@@ -248,17 +248,5 @@ namespace umbraco.editorControls.PickerRelations
|
||||
|
||||
return isContextObjectTypeValid;
|
||||
}
|
||||
|
||||
///// <summary>
|
||||
///// Insted of rendering the current name of this property, use a consistant label
|
||||
///// </summary>
|
||||
///// <param name="writer"></param>
|
||||
//protected override void Render(HtmlTextWriter writer)
|
||||
//{
|
||||
// writer.WriteLine("<div class='propertyItemheader'>MultiNode Relations</div>");
|
||||
// writer.WriteLine("<div class='propertyItemContent'>");
|
||||
// base.Render(writer);
|
||||
// writer.WriteLine("</div>");
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -232,15 +232,12 @@ namespace umbraco.editorControls.PickerRelations
|
||||
{
|
||||
//clear data
|
||||
Relation relation;
|
||||
if (relations.HasRecords)
|
||||
while (relations.Read())
|
||||
{
|
||||
while (relations.Read())
|
||||
{
|
||||
relation = new Relation(relations.GetInt("id"));
|
||||
relation = new Relation(relations.GetInt("id"));
|
||||
|
||||
// TODO: [HR] check to see if an instance identifier is used
|
||||
relation.Delete();
|
||||
}
|
||||
// TODO: [HR] check to see if an instance identifier is used
|
||||
relation.Delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user