mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-22 03:37:25 +08:00
Fixing clayless issues with Projections
--HG-- branch : 1.x
This commit is contained in:
@@ -5,7 +5,6 @@ using System.Xml;
|
||||
using System.Xml.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Orchard.Data.Bags;
|
||||
|
||||
namespace Orchard.Forms.Services {
|
||||
public static class FormParametersHelper {
|
||||
|
@@ -350,7 +350,7 @@ namespace Orchard.Forms.Shapes {
|
||||
|
||||
Output.WriteLine(select.ToString(TagRenderMode.StartTag));
|
||||
|
||||
string selectedValue = Convert.ToString(Shape.Value);
|
||||
string selectedValue = Convert.ToString(Shape.Value) ?? "";
|
||||
var selectedValues = selectedValue.Split(new[] { ',' });
|
||||
|
||||
foreach (var item in Items) {
|
||||
|
@@ -4,7 +4,7 @@ using Orchard.DisplayManagement;
|
||||
using Orchard.DisplayManagement.Shapes;
|
||||
|
||||
namespace Orchard.Forms.Shapes {
|
||||
public class PropertiesAreItems : Composite {
|
||||
public class PropertiesAreItems : Shape {
|
||||
public override bool TrySetMember(System.Dynamic.SetMemberBinder binder, object value) {
|
||||
Patch(this, binder.Name, value);
|
||||
return base.TrySetMember(binder, value);
|
||||
|
@@ -42,14 +42,14 @@ namespace Orchard.Projections.Providers.SortCriteria {
|
||||
|
||||
public void ApplyFilter(SortCriterionContext context, PropertyInfo property) {
|
||||
|
||||
bool ascending = Convert.ToBoolean(context.State.Sort);
|
||||
bool ascending = Boolean.Parse(Convert.ToString(context.State.Sort));
|
||||
context.Query = ascending
|
||||
? context.Query.OrderBy(alias => alias.ContentPartRecord(property.DeclaringType), x => x.Asc(property.Name))
|
||||
: context.Query.OrderBy(alias => alias.ContentPartRecord(property.DeclaringType), x => x.Desc(property.Name));
|
||||
}
|
||||
|
||||
public LocalizedString DisplaySortCriterion(SortCriterionContext context, string propertyName) {
|
||||
bool ascending = Convert.ToBoolean(context.State.Sort);
|
||||
bool ascending = Boolean.Parse(Convert.ToString(context.State.Sort));
|
||||
|
||||
if (ascending) {
|
||||
return T("Ordered by {0}, ascending", propertyName);
|
||||
|
@@ -52,7 +52,7 @@
|
||||
affects performance, set this value to true only
|
||||
during development.
|
||||
-->
|
||||
<compilation debug="false" targetFramework="4.0" batch="true" numRecompilesBeforeAppRestart="250" optimizeCompilations="true">
|
||||
<compilation debug="true" targetFramework="4.0" batch="true" numRecompilesBeforeAppRestart="250" optimizeCompilations="true">
|
||||
<buildProviders>
|
||||
<add extension=".csproj" type="Orchard.Environment.Extensions.Compilers.CSharpExtensionBuildProviderShim"/>
|
||||
</buildProviders>
|
||||
|
Reference in New Issue
Block a user