Skip to content

Commit

Permalink
Merge pull request #1137 from magento-folks/bugs
Browse files Browse the repository at this point in the history
[Folks]Bugs
  • Loading branch information
Alexander Akimov authored May 26, 2017
2 parents ae53ec1 + abaca20 commit 1432268
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
11 changes: 11 additions & 0 deletions app/code/Magento/Quote/Setup/UpgradeSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
$setup->getFkName('quote_item', 'product_id', 'catalog_product_entity', 'entity_id')
);
}
if (version_compare($context->getVersion(), '2.0.5', '<')) {
$connection = $setup->getConnection();
$connection->modifyColumn(
$setup->getTable('quote_address'),
'shipping_method',
[
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
'length' => 120
]
);
}
$setup->endSetup();
}
}
2 changes: 1 addition & 1 deletion app/code/Magento/Quote/etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Magento_Quote" setup_version="2.0.4">
<module name="Magento_Quote" setup_version="2.0.5">
</module>
</config>
11 changes: 11 additions & 0 deletions app/code/Magento/Sales/Setup/UpgradeSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
]
);
}
if (version_compare($context->getVersion(), '2.0.7', '<')) {
$connection = $installer->getConnection(self::$connectionName);
$connection->modifyColumn(
$installer->getTable('sales_order', self::$connectionName),
'shipping_method',
[
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
'length' => 120
]
);
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Sales/etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Magento_Sales" setup_version="2.0.6">
<module name="Magento_Sales" setup_version="2.0.7">
<sequence>
<module name="Magento_Rule"/>
<module name="Magento_Catalog"/>
Expand Down
5 changes: 3 additions & 2 deletions app/code/Magento/Store/Model/Address/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ public function format(DataObject $storeInfo, $type = 'html')
{
$this->eventManager->dispatch('store_address_format', ['type' => $type, 'store_info' => $storeInfo]);
$address = $this->filterManager->template(
"{{var name}}\n{{var street_line1}}\n{{depend street_line2}}{{var street_line2}}\n{{/depend}}"
. "{{var city}}, {{var region}} {{var postcode}},\n{{var country}}",
"{{var name}}\n{{var street_line1}}\n{{depend street_line2}}{{var street_line2}}\n{{/depend}}" .
"{{depend city}}{{var city}},{{/depend}} {{var region}} {{depend postcode}}{{var postcode}},{{/depend}}\n" .
"{{var country}}",
['variables' => $storeInfo->getData()]
);

Expand Down

0 comments on commit 1432268

Please sign in to comment.