Skip to content

Commit b61b5ce

Browse files
authored
Merge pull request #3409 from magento-honey-badgers/2.3.0-qwerty-sync
[honey] MC-4323: Cannot Add Slider WYSIWYG Image From Gallery or Link to Image in Gallery After Page Has Been Saved
2 parents 5e82ba6 + 030cea3 commit b61b5ce

File tree

9 files changed

+31
-9
lines changed

9 files changed

+31
-9
lines changed

app/code/Magento/Customer/etc/db_schema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@
506506
<column xsi:type="int" name="customer_id" padding="11" unsigned="false" nullable="true" identity="false"
507507
comment="Customer Id"/>
508508
<column xsi:type="varchar" name="session_id" nullable="true" length="64" comment="Session ID"/>
509-
<column xsi:type="timestamp" name="last_visit_at" on_update="true" nullable="true" default="CURRENT_TIMESTAMP"
509+
<column xsi:type="timestamp" name="last_visit_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
510510
comment="Last Visit Time"/>
511511
<constraint xsi:type="primary" referenceId="PRIMARY">
512512
<column name="visitor_id"/>

app/code/Magento/Integration/etc/adminhtml/system.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<label>Maximum Login Failures to Lock Out Account</label>
5555
<comment>Maximum Number of authentication failures to lock out account.</comment>
5656
</field>
57-
<field id="timeout" translate="label" type="text comment" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
57+
<field id="timeout" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
5858
<label>Lockout Time (seconds)</label>
5959
<comment>Period of time in seconds after which account will be unlocked.</comment>
6060
</field>

app/code/Magento/Integration/etc/db_schema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
comment="User type (admin or customer)"/>
137137
<column xsi:type="smallint" name="failures_count" padding="5" unsigned="true" nullable="true" identity="false"
138138
default="0" comment="Number of failed authentication attempts in a row"/>
139-
<column xsi:type="timestamp" name="lock_expires_at" on_update="true" nullable="true" default="CURRENT_TIMESTAMP"
139+
<column xsi:type="timestamp" name="lock_expires_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
140140
comment="Lock expiration time"/>
141141
<constraint xsi:type="primary" referenceId="PRIMARY">
142142
<column name="log_id"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@
769769
<column xsi:type="varchar" name="order_increment_id" nullable="false" length="32" comment="Order Increment Id"/>
770770
<column xsi:type="int" name="order_id" padding="10" unsigned="true" nullable="false" identity="false"
771771
comment="Order Id"/>
772-
<column xsi:type="timestamp" name="order_created_at" on_update="true" nullable="true"
772+
<column xsi:type="timestamp" name="order_created_at" on_update="true" nullable="false"
773773
default="CURRENT_TIMESTAMP" comment="Order Increment Id"/>
774774
<column xsi:type="varchar" name="customer_name" nullable="false" length="128" comment="Customer Name"/>
775775
<column xsi:type="decimal" name="total_qty" scale="4" precision="12" unsigned="false" nullable="true"

dev/tests/functional/tests/app/Magento/Bundle/Test/Block/Adminhtml/Product/Composite/Configure.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
-->
88
<mapping strict="0">
99
<fields>
10-
<qty />
1110
<checkbox>
1211
<selector>div[contains(@class,"field choice") and label[contains(.,"%product_name%")]]//input</selector>
1312
<strategy>xpath</strategy>

dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Block/Adminhtml/Product/Composite/Configure.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
-->
88
<mapping strict="0">
99
<fields>
10-
<qty />
1110
<attribute>
1211
<selector>//div[@class="product-options"]//label[.="%s"]//following-sibling::*//select</selector>
1312
<strategy>xpath</strategy>

dev/tests/functional/tests/app/Magento/Downloadable/Test/Block/Adminhtml/Product/Composite/Configure.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
-->
88
<mapping strict="0">
99
<fields>
10-
<qty />
1110
<link>
1211
<selector>//*[@id="downloadable-links-list"]/*[contains(.,"%link_name%")]//input</selector>
1312
<strategy>xpath</strategy>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
9+
namespace Magento\Integration\Block\Adminhtml\System\Config;
10+
11+
class OauthSectionTest extends \Magento\TestFramework\TestCase\AbstractBackendController
12+
{
13+
/**
14+
* Checks that OAuth Section in the system config is loaded
15+
*/
16+
public function testOAuthSection()
17+
{
18+
$this->dispatch('backend/admin/system_config/edit/section/oauth/');
19+
$body = $this->getResponse()->getBody();
20+
$this->assertContains('id="oauth_access_token_lifetime-head"', $body);
21+
$this->assertContains('id="oauth_cleanup-head"', $body);
22+
$this->assertContains('id="oauth_consumer-head"', $body);
23+
$this->assertContains('id="oauth_authentication_lock-head"', $body);
24+
}
25+
}

lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ define([
117117
jQuery.when.apply(jQuery, deferreds).done(function () {
118118
tinyMCE4.init(settings);
119119
this.getPluginButtons().hide();
120-
this.eventBus.attachEventHandler('open_browser_callback', this.openFileBrowser);
120+
this.eventBus.attachEventHandler('open_browser_callback', tinyMceEditors.get(self.id).openFileBrowser);
121121
}.bind(this));
122122
},
123123

@@ -129,7 +129,7 @@ define([
129129
removeEvents: function (wysiwygId) {
130130
var editor;
131131

132-
if (typeof tinyMceEditors !== 'undefined') {
132+
if (typeof tinyMceEditors !== 'undefined' && tinyMceEditors.get(wysiwygId)) {
133133
editor = tinyMceEditors.get(wysiwygId);
134134
varienGlobalEvents.removeEventHandler('tinymceChange', editor.onChangeContent);
135135
}

0 commit comments

Comments
 (0)