Fix build break
- no need to call (`internal`) `html.GenerateId()` method since it matches `html.Id()` exactly - no need for `.ToString()` with either method since they return `string` now
This commit is contained in:
parent
a379593746
commit
641816fd9b
|
|
@ -239,7 +239,7 @@ namespace Microsoft.AspNet.Mvc.Rendering
|
||||||
var displayFieldNameParts = displayFieldName.Split('.');
|
var displayFieldNameParts = displayFieldName.Split('.');
|
||||||
displayFieldName = displayFieldNameParts[displayFieldNameParts.Length - 1];
|
displayFieldName = displayFieldNameParts[displayFieldNameParts.Length - 1];
|
||||||
|
|
||||||
tag.Attributes["id"] = helper.GetFullHtmlFieldId(propertyExpressionText).ToString();
|
tag.Attributes["id"] = html.Id(propertyExpressionText);
|
||||||
tag.Attributes["name"] = valueFieldName;
|
tag.Attributes["name"] = valueFieldName;
|
||||||
tag.Attributes["ng-model"] = valueFieldName;
|
tag.Attributes["ng-model"] = valueFieldName;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,10 +26,5 @@ namespace Microsoft.AspNet.Mvc.Rendering
|
||||||
{
|
{
|
||||||
return GetClientValidationRules(metadata, name);
|
return GetClientValidationRules(metadata, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public HtmlString GetFullHtmlFieldId(string expression)
|
|
||||||
{
|
|
||||||
return GenerateId(expression);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue