mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 04:43:35 +08:00
Added required validation to the url field for navigation management
--HG-- branch : dev
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System.Web.Mvc;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.Web.Mvc;
|
||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
using Orchard.Core.Navigation.Records;
|
using Orchard.Core.Navigation.Records;
|
||||||
|
|
||||||
@@ -7,6 +8,7 @@ namespace Orchard.Core.Navigation.Models {
|
|||||||
[HiddenInput(DisplayValue = false)]
|
[HiddenInput(DisplayValue = false)]
|
||||||
public int Id { get { return ContentItem.Id; } }
|
public int Id { get { return ContentItem.Id; } }
|
||||||
|
|
||||||
|
[Required]
|
||||||
public string Url {
|
public string Url {
|
||||||
get { return Record.Url; }
|
get { return Record.Url; }
|
||||||
set { Record.Url = value; }
|
set { Record.Url = value; }
|
||||||
|
Reference in New Issue
Block a user