PluginProbe
Packeta / 2.0.9
Packeta v2.0.9
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
← All changes | src/Packetery/Module/Order/AttributeMapper.php +5 -4 trunk2.0.9 View file →
@@ -41,12 +41,8 @@
41 41 case Attribute::POINT_ID:
42 42 $pickupPoint->setId( $attrValue );
43 43
44 44 break;
45 - case Attribute::POINT_PLACE:
46 - $pickupPoint->setPlace( (string) $attrValue );
47 -
48 - break;
49 45 case Attribute::POINT_NAME:
50 46 $pickupPoint->setName( $attrValue );
51 47
52 48 break;
@@ -132,8 +128,13 @@
132 128 }
133 129
134 130 foreach ( $propsToSave as $attrName => $attrValue ) {
135 131 switch ( $attrName ) {
132 + // TODO: Setting these values shouldn't be done here?
133 + case Form::FIELD_WEIGHT:
134 + $order->setWeight( $attrValue );
135 +
136 + break;
136 137 case Form::FIELD_WIDTH:
137 138 $orderSize->setWidth( $attrValue );
138 139
139 140 break;