From 7fd7d7a582593eb38691368be2f0b458a502bd36 Mon Sep 17 00:00:00 2001 From: Dave Woestenborghs Date: Fri, 18 Jan 2019 12:37:04 +0100 Subject: [PATCH] #3417 also send id of parameter with api response --- src/Umbraco.Web/Editors/MacrosController.cs | 3 ++- .../Models/ContentEditing/MacroParameterDisplay.cs | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Editors/MacrosController.cs b/src/Umbraco.Web/Editors/MacrosController.cs index d604137e19..f8214b77a8 100644 --- a/src/Umbraco.Web/Editors/MacrosController.cs +++ b/src/Umbraco.Web/Editors/MacrosController.cs @@ -100,7 +100,8 @@ { Editor = param.EditorAlias, Key = param.Alias, - Label = param.Name + Label = param.Name, + Id = param.Id }); } diff --git a/src/Umbraco.Web/Models/ContentEditing/MacroParameterDisplay.cs b/src/Umbraco.Web/Models/ContentEditing/MacroParameterDisplay.cs index 56d3d1b76e..2a07dd84ef 100644 --- a/src/Umbraco.Web/Models/ContentEditing/MacroParameterDisplay.cs +++ b/src/Umbraco.Web/Models/ContentEditing/MacroParameterDisplay.cs @@ -25,5 +25,11 @@ /// [DataMember(Name = "editor")] public string Editor { get; set; } + + /// + /// Gets or sets the id. + /// + [DataMember(Name = "id")] + public int Id { get; set; } } }