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:
Hendy@Blueberry
2012-07-11 11:48:25 -01:00
parent b5171d545e
commit b16b5511da
2 changed files with 4 additions and 19 deletions

View File

@@ -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>");
//}
}
}

View File

@@ -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();
}
}
}