Skip to content

Commit

Permalink
OptionItem - set Weight to Decimal (#328)
Browse files Browse the repository at this point in the history
fixes #325
  • Loading branch information
jsirish authored Oct 12, 2018
1 parent c15fbf5 commit 5259753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/OptionItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class OptionItem extends DataObject
*/
private static $db = array(
'Title' => 'Text',
'WeightModifier' => 'Int',
'WeightModifier' => 'Decimal',
'CodeModifier' => 'Text',
'PriceModifier' => 'Currency',
'WeightModifierAction' => "Enum('Add,Subtract,Set','Add')",
Expand Down Expand Up @@ -173,7 +173,7 @@ public function getCMSFields()

// Weight Modifier Fields
HeaderField::create('WeightHD', _t('OptionItem.WeightHD', 'Modify Weight'), 3),
NumericField::create('WeightModifier')
TextField::create('WeightModifier')
->setTitle(_t('OptionItem.WeightModifier', 'Weight')),
DropdownField::create(
'WeightModifierAction',
Expand Down

0 comments on commit 5259753

Please sign in to comment.