GenericOrderParamVM 'default_value' arg needs to be null (it is used to indicate 'no value present')

This commit is contained in:
John Colvin committed 2019-08-02 19:07:03 -05:00
1 parent 0f355dfa8f
commit cdb8bccb5a
1 file changed
+1 -1
@@ -125,7 +125,7 @@ namespace mbts.spark {
descriptor.MessageType.FullName == typeof(bts.spark.QuantityMeasure).FullName)
{
var qm = new GenericOrderQuantityVM<TMutable>(descriptor);
return attached(qm, GenericOrderHelper.get_quantity_value, GenericOrderHelper.set_quantity_value, new QuantityMeasure { Ratio = 1.0, Absolute = 1 });
return attached(qm, GenericOrderHelper.get_quantity_value, GenericOrderHelper.set_quantity_value);
}
else if(descriptor.FieldType == FieldType.Enum)
{