Skip to content

Commit de96667

Browse files
author
Michael Logvin
committed
Merge branch 'develop' into MAGETWO-31478
2 parents c929a81 + 7e07209 commit de96667

File tree

10 files changed

+217
-112
lines changed

10 files changed

+217
-112
lines changed

Gruntfile.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,11 @@ module.exports = function (grunt) {
480480
areaDir: 'frontend',
481481
theme: 'blank'
482482
}
483+
},
484+
lib: {
485+
options: {
486+
port: 8080
487+
}
483488
}
484489
},
485490

@@ -488,6 +493,8 @@ module.exports = function (grunt) {
488493
template: require('grunt-template-jasmine-requirejs'),
489494
ignoreEmpty: true
490495
},
496+
'lib-unit': specRunner.configure('unit', 'lib', 8080),
497+
'lib-integration': specRunner.configure('integration', 'lib', 8080),
491498
'backend-unit': specRunner.configure('unit', 'adminhtml', 8000),
492499
'backend-integration': specRunner.configure('integration', 'adminhtml', 8000),
493500
'frontend-unit': specRunner.configure('unit', 'frontend', 3000),
@@ -550,16 +557,19 @@ module.exports = function (grunt) {
550557
// ---------------------------------------------
551558

552559
grunt.registerTask('spec', [
560+
'specRunner:lib',
553561
'specRunner:backend',
554562
'specRunner:frontend'
555563
]);
556564

557565
grunt.registerTask('unit', [
566+
'jasmine:lib-unit',
558567
'jasmine:backend-unit',
559568
'jasmine:frontend-unit'
560569
]);
561570

562571
grunt.registerTask('integration', [
572+
'jasmine:lib-integration',
563573
'jasmine:backend-integration',
564574
'jasmine:frontend-integration'
565575
]);

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)