Skip to content

Commit 68ce6af

Browse files
committed
Merge pull request #168 from magento-troll/MAGETWO-35068
[Troll] Bugfixes
2 parents 7ab8211 + 27330a1 commit 68ce6af

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/code/Magento/Reports/Model/Resource/Report/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ protected function _getYearInterval(\DateTime $dateStart, \DateTime $dateEnd, $f
232232
$interval = [];
233233
$interval['period'] = $dateStart->format('Y');
234234
$interval['start'] = $firstInterval
235-
? $dateStart->format('Y-m-dd 00:00:00')
235+
? $dateStart->format('Y-m-d 00:00:00')
236236
: $dateStart->format('Y-01-01 00:00:00');
237237

238238
$interval['end'] = $dateStart->diff($dateEnd)->y == 0

app/code/Magento/Reports/view/adminhtml/templates/grid.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ require([
112112
period_date_from.adviceContainer = $('<?php echo $block->getSuffixId('period_date_from_advice')?>');
113113
period_date_to.adviceContainer = $('<?php echo $block->getSuffixId('period_date_to_advice')?>');
114114

115-
validateFilterDate = function() {
115+
var validateFilterDate = function() {
116116
if (period_date_from && period_date_to) {
117117
var valid = true;
118118
jQuery(period_date_from).add(period_date_to).each(function() {

lib/internal/Magento/Framework/View/Template/Html/Minifier.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,17 @@ public function minify($file)
116116
'#(?<!]]>)\s+</#',
117117
'</',
118118
preg_replace(
119-
'#((?:<\?php\s+(?!echo)[^\?]*)\?>)\s+#',
119+
'#((?:<\?php\s+(?!echo|print)[^\?]*)\?>)\s+#',
120120
'$1',
121121
preg_replace(
122122
'#(?<!' . implode('|', $this->inlineHtmlTags) . ')\> \<#',
123123
'><',
124124
preg_replace(
125-
'#(?ix)(?>[^\S ]\s*|\s{2,})(?=(?:(?:[^<]++|<(?!/?(?:textarea|pre|script)\b))*+)'
126-
. '(?:<(?>textarea|pre|script)\b|\z))#',
125+
'#(?ix)(?>[^\S ]\s*|\s{2,})(?=(?:(?:[^<]++|<(?!/?(?:textarea|pre|script|style)\b))*+)'
126+
. '(?:<(?>textarea|pre|script|style)\b|\z))#',
127127
' ',
128128
preg_replace(
129-
'#(?<!:)//(?!\s*\<\!\[)(?!\s*]]\>)[^\n\r]*#',
129+
'#(?<!:|\\\\)//(?!\s*\<\!\[)(?!\s*]]\>)[^\n\r]*#',
130130
'',
131131
preg_replace(
132132
'#(?<!:)//[^\n\r]*(\s\?\>)#',

0 commit comments

Comments
 (0)