Skip to content

Commit daa5103

Browse files
author
Michael Logvin
committed
Merge pull request #75 from magento-firedrakes/bugfixes
[Firedrakes] Bugfixes. Sprint 36
2 parents f905eba + 00c378f commit daa5103

File tree

8 files changed

+193
-104
lines changed

8 files changed

+193
-104
lines changed

app/code/Magento/Customer/Model/Resource/Customer.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,8 @@ protected function _saveAddresses(\Magento\Customer\Model\Customer $customer)
223223
}
224224
}
225225
}
226-
if ($customer->dataHasChangedFor('default_billing')) {
227-
$this->saveAttribute($customer, 'default_billing');
228-
}
229-
if ($customer->dataHasChangedFor('default_shipping')) {
230-
$this->saveAttribute($customer, 'default_shipping');
231-
}
226+
$this->saveAttribute($customer, 'default_billing');
227+
$this->saveAttribute($customer, 'default_shipping');
232228

233229
return $this;
234230
}

app/code/Magento/Quote/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/module-quote",
33
"description": "N/A",
44
"require": {
5-
"php": "~5.4.11|~5.5.0",
5+
"php": "~5.4.11|~5.5.0|~5.6.0",
66
"magento/module-store": "0.42.0-beta6",
77
"magento/module-catalog": "0.42.0-beta6",
88
"magento/module-customer": "0.42.0-beta6",

app/code/Magento/Sales/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
9-
<module name="Magento_Sales" schema_version="2.0.0">
9+
<module name="Magento_Sales" schema_version="2.0.1">
1010
<sequence>
1111
<module name="Magento_Rule"/>
1212
<module name="Magento_Catalog"/>

app/code/Magento/Sales/sql/sales_setup/update-2.0.1.php

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
use Magento\Framework\DB\Ddl\Table;
8+
9+
/**
10+
* update columns created_at and updated_at in sales entities tables
11+
*/
12+
13+
$tables = [
14+
'sales_creditmemo',
15+
'sales_creditmemo_comment',
16+
'sales_invoice',
17+
'sales_invoice_comment',
18+
'sales_order',
19+
'sales_order_item',
20+
'sales_order_status_history',
21+
'sales_payment_transaction',
22+
'sales_shipment',
23+
'sales_shipment_comment',
24+
'sales_shipment_track'
25+
];
26+
/** @var \Magento\Framework\DB\Adapter\AdapterInterface $connection */
27+
$connection = $this->getConnection();
28+
foreach ($tables as $table) {
29+
$columns = $connection->describeTable($this->getTable($table));
30+
if (isset($columns['created_at'])) {
31+
$createdAt = $columns['created_at'];
32+
$createdAt['DEFAULT'] = Table::TIMESTAMP_INIT;
33+
$createdAt['TYPE'] = Table::TYPE_TIMESTAMP;
34+
$connection->modifyColumn($this->getTable($table), 'created_at', $createdAt);
35+
}
36+
if (isset($columns['updated_at'])) {
37+
$updatedAt = $columns['updated_at'];
38+
$updatedAt['DEFAULT'] = Table::TIMESTAMP_UPDATE;
39+
$updatedAt['TYPE'] = Table::TYPE_TIMESTAMP;
40+
$connection->modifyColumn($this->getTable($table), 'updated_at', $updatedAt);
41+
}
42+
}

app/code/Magento/Sales/view/adminhtml/templates/order/invoice/create/items.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
</div>
119119

120120
<script>
121-
require(['prototype'], function(){
121+
require(['jquery', 'prototype'], function($){
122122

123123
//<![CDATA[
124124
var submitButtons = $$('.submit-button');
@@ -129,7 +129,7 @@ var fields = $$('.qty-input');
129129
updateButtons.each(function (elem) {elem.disabled=true;elem.addClassName('disabled');});
130130

131131
for(var i=0;i<fields.length;i++){
132-
fields[i].observe('change', checkButtonsRelation)
132+
$(fields[i]).on('keyup', checkButtonsRelation);
133133
fields[i].baseValue = fields[i].value;
134134
}
135135

composer.lock

Lines changed: 33 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)