Skip to content

Commit 96d2202

Browse files
committed
Merge pull request #416 from magento-ogre/PR_Branch
[Ogre] Bug fixes, Public PRs
2 parents b0bf806 + b02fec7 commit 96d2202

File tree

59 files changed

+1375
-419
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1375
-419
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ atlassian*
4646

4747
/var/*
4848
!/var/.htaccess
49-
/vendor
49+
/vendor/*
5050
!/vendor/.htaccess

app/code/Magento/Backend/view/adminhtml/templates/system/search.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@
2828
<script data-template="search-suggest" type="text/x-magento-template">
2929
<ul class="search-global-menu">
3030
<li class="item">
31-
<a href="<?php /* @escapeNotVerified */ echo $block->getURL('catalog/product/index/'); ?>?search=<%- data.term%>" class="title">"<%- data.term%>" in Products</a>
31+
<a id="searchPreviewProducts" href="<?php /* @escapeNotVerified */ echo $block->getURL('catalog/product/index/'); ?>?search=<%- data.term%>" class="title">"<%- data.term%>" in Products</a>
3232
</li>
3333
<li class="item">
34-
<a href="<?php /* @escapeNotVerified */ echo $block->getURL('sales/order/index/'); ?>?search=<%- data.term%>" class="title">"<%- data.term%>" in Orders</a>
34+
<a id="searchPreviewOrders" href="<?php /* @escapeNotVerified */ echo $block->getURL('sales/order/index/'); ?>?search=<%- data.term%>" class="title">"<%- data.term%>" in Orders</a>
3535
</li>
3636
<li class="item">
37-
<a href="<?php /* @escapeNotVerified */ echo $block->getURL('customer/index/index/'); ?>?search=<%- data.term%>" class="title">"<%- data.term%>" in Customers</a>
37+
<a id="searchPreviewCustomers" href="<?php /* @escapeNotVerified */ echo $block->getURL('customer/index/index/'); ?>?search=<%- data.term%>" class="title">"<%- data.term%>" in Customers</a>
3838
</li>
3939
<li class="item">
40-
<a href="<?php /* @escapeNotVerified */ echo $block->getURL('cms/page/index/'); ?>?search=<%- data.term%>" class="title">"<%- data.term%>" in Pages</a>
40+
<a id="searchPreviewPages" href="<?php /* @escapeNotVerified */ echo $block->getURL('cms/page/index/'); ?>?search=<%- data.term%>" class="title">"<%- data.term%>" in Pages</a>
4141
</li>
4242
<% if (data.items.length) { %>
4343
<% _.each(data.items, function(value){ %>

app/code/Magento/Backup/Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public function getExtensions()
122122
\Magento\Framework\Backup\Factory::TYPE_SYSTEM_SNAPSHOT => 'tgz',
123123
\Magento\Framework\Backup\Factory::TYPE_SNAPSHOT_WITHOUT_MEDIA => 'tgz',
124124
\Magento\Framework\Backup\Factory::TYPE_MEDIA => 'tgz',
125-
\Magento\Framework\Backup\Factory::TYPE_DB => 'gz'
125+
\Magento\Framework\Backup\Factory::TYPE_DB => 'sql'
126126
];
127127
}
128128

app/code/Magento/MediaStorage/Model/File/Storage/Database.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ class Database extends \Magento\MediaStorage\Model\File\Storage\Database\Abstrac
4141
*/
4242
protected $_mediaHelper;
4343

44+
/**
45+
* Store media base directory path
46+
*
47+
* @var string
48+
*/
49+
protected $mediaBaseDirectory = null;
50+
4451
/**
4552
* @param \Magento\Framework\Model\Context $context
4653
* @param \Magento\Framework\Registry $registry
@@ -352,4 +359,17 @@ public function deleteFile($path)
352359

353360
return $this;
354361
}
362+
363+
/**
364+
* Retrieve media base directory path
365+
*
366+
* @return string
367+
*/
368+
public function getMediaBaseDirectory()
369+
{
370+
if ($this->mediaBaseDirectory === null) {
371+
$this->mediaBaseDirectory = $this->_coreFileStorageDb->getMediaBaseDir();
372+
}
373+
return $this->mediaBaseDirectory;
374+
}
355375
}

app/code/Magento/Search/view/adminhtml/ui_component/search_synonyms_form.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,17 @@
102102
<item name="config" xsi:type="array">
103103
<item name="additionalClasses" xsi:type="string">admin__field-no-label</item>
104104
<item name="description" xsi:type="string" translate="true">Merge existing synonyms</item>
105-
<item name="dataType" xsi:type="string">boolean</item>
106105
<item name="default" xsi:type="boolean">false</item>
107106
<item name="formElement" xsi:type="string">checkbox</item>
108107
<item name="dataScope" xsi:type="string">mergeOnConflict</item>
109108
<item name="source" xsi:type="string">block</item>
110109
<item name="tooltip" xsi:type="array">
111110
<item name="description" xsi:type="string" translate="true">Automatically merges synonyms in groups that share the same scope. If you check this box and you add one or more of the same terms to different synonym groups in the same scope, automatically merges all the terms to one group. If this isn't what you want, uncheck the box and an error displays if you try to add the same terms.</item>
112111
</item>
112+
<item name="valueMap" xsi:type="array">
113+
<item name="true" xsi:type="boolean">true</item>
114+
<item name="false" xsi:type="boolean">false</item>
115+
</item>
113116
</item>
114117
</argument>
115118
</field>

app/code/Magento/Theme/Model/Theme/Registration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public function __construct(
6868
public function register()
6969
{
7070
$this->_themeCollection->clear();
71+
7172
foreach ($this->_themeCollection as $theme) {
7273
$this->_registerThemeRecursively($theme);
7374
}

app/code/Magento/Theme/Observer/ThemeRegistrationObserver.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

app/code/Magento/Theme/Setup/InstallData.php

Lines changed: 0 additions & 111 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
namespace Magento\Theme\Setup;
8+
9+
use Magento\Framework\Setup\InstallDataInterface;
10+
use Magento\Framework\Setup\ModuleContextInterface;
11+
use Magento\Framework\Setup\ModuleDataSetupInterface;
12+
use Magento\Theme\Model\Theme\Registration;
13+
14+
/**
15+
* Upgrade registered themes
16+
*/
17+
class RecurringData implements InstallDataInterface
18+
{
19+
/**
20+
* Theme registration
21+
*
22+
* @var Registration
23+
*/
24+
private $themeRegistration;
25+
26+
/**
27+
* Init
28+
*
29+
* @param Registration $themeRegistration
30+
*/
31+
public function __construct(Registration $themeRegistration)
32+
{
33+
$this->themeRegistration = $themeRegistration;
34+
}
35+
36+
/**
37+
* {@inheritdoc}
38+
*/
39+
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
40+
{
41+
$this->themeRegistration->register();
42+
}
43+
}

app/code/Magento/Theme/Test/Unit/Observer/ThemeRegistrationObserverTest.php

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)