Fixed: date comparisons in CPPredicateEditor (#2449)

CPPredicateEditorRowTemplate has been modified to allow a correct comparision of date objects when using the CPDateAttributeType
Before this correction, the predicate format was using a string representation of a date instead of a date object.
This commit is contained in:
Philippe Fuentes authored and cacaodev committed 2016-05-14 23:16:10 +02:00
1 parent c38daac646
commit 818d5d782f
1 file changed
+2
@@ -474,6 +474,8 @@ CPTransformableAttributeType = 1800;
value = [aView intValue];
else if (attributeType == CPBooleanAttributeType)
value = [aView state];
else if (attributeType == CPDateAttributeType)
value = [aView dateValue];
else
value = [aView stringValue];