mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing CustomFormEvents (dictionary lookups are case sensitive).
--HG-- branch : 1.x
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Orchard.CustomForms.Rules {
|
||||
}
|
||||
|
||||
private string FormatPartsList(dynamic context) {
|
||||
var contenttypes = context.Properties["contenttypes"];
|
||||
var contenttypes = context.Properties["ContentTypes"];
|
||||
|
||||
if (String.IsNullOrEmpty(contenttypes)) {
|
||||
return T("Any").Text;
|
||||
@@ -35,7 +35,7 @@ namespace Orchard.CustomForms.Rules {
|
||||
}
|
||||
|
||||
private static bool ContentHasPart(dynamic context) {
|
||||
string contenttypes = context.Properties["contenttypes"];
|
||||
string contenttypes = context.Properties["ContentTypes"];
|
||||
var content = context.Tokens["Content"] as IContent;
|
||||
|
||||
// "" means 'any'
|
||||
|
Reference in New Issue
Block a user