mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Merge pull request #5780 from mjy78/issue/5779
[Fixes #5779] Query and Taxonomy Elements should include value attribute for default option
This commit is contained in:
@@ -136,7 +136,7 @@ namespace Orchard.DynamicForms.Drivers {
|
|||||||
var runtimeValues = GetRuntimeValues(element);
|
var runtimeValues = GetRuntimeValues(element);
|
||||||
|
|
||||||
if (!String.IsNullOrWhiteSpace(optionLabel)) {
|
if (!String.IsNullOrWhiteSpace(optionLabel)) {
|
||||||
yield return new SelectListItem { Text = displayType != "Design" ? _tokenizer.Replace(optionLabel, tokenData) : optionLabel };
|
yield return new SelectListItem { Text = displayType != "Design" ? _tokenizer.Replace(optionLabel, tokenData) : optionLabel, Value = string.Empty };
|
||||||
}
|
}
|
||||||
|
|
||||||
if (queryId == null)
|
if (queryId == null)
|
||||||
|
@@ -138,7 +138,7 @@ namespace Orchard.DynamicForms.Drivers {
|
|||||||
var runtimeValues = GetRuntimeValues(element);
|
var runtimeValues = GetRuntimeValues(element);
|
||||||
|
|
||||||
if (!String.IsNullOrWhiteSpace(optionLabel)) {
|
if (!String.IsNullOrWhiteSpace(optionLabel)) {
|
||||||
yield return new SelectListItem { Text = displayType != "Design" ? _tokenizer.Replace(optionLabel, tokenData) : optionLabel };
|
yield return new SelectListItem { Text = displayType != "Design" ? _tokenizer.Replace(optionLabel, tokenData) : optionLabel, Value = string.Empty };
|
||||||
}
|
}
|
||||||
|
|
||||||
if (taxonomyId == null)
|
if (taxonomyId == null)
|
||||||
|
Reference in New Issue
Block a user