Added required validation to the url field for navigation management

--HG--
branch : dev
This commit is contained in:
Erik Porter
2010-02-16 16:09:57 -08:00
parent 3aa158510d
commit ee30cb155b

View File

@@ -1,4 +1,5 @@
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Orchard.ContentManagement;
using Orchard.Core.Navigation.Records;
@@ -7,6 +8,7 @@ namespace Orchard.Core.Navigation.Models {
[HiddenInput(DisplayValue = false)]
public int Id { get { return ContentItem.Id; } }
[Required]
public string Url {
get { return Record.Url; }
set { Record.Url = value; }