File tree Expand file tree Collapse file tree 6 files changed +38
-23
lines changed
Catalog/Ui/DataProvider/Product/Form/Modifier
Customer/view/base/ui_component
Ui/view/base/web/js/form/element
dev/tests/functional/utils
internal/Magento/Framework/View/Result Expand file tree Collapse file tree 6 files changed +38
-23
lines changed Original file line number Diff line number Diff line change @@ -154,8 +154,8 @@ protected function getFieldsForFieldset()
154
154
$ tooltip = [
155
155
'link ' => 'http://docs.magento.com/m2/ce/user_guide/configuration/scope.html ' ,
156
156
'description ' => __ (
157
- 'If your Magento site has multiple views , ' .
158
- 'you can set the scope to apply to a specific view . '
157
+ 'If your Magento installation has multiple websites , ' .
158
+ 'you can edit the scope to use the product on specific sites . '
159
159
),
160
160
];
161
161
$ sortOrder = 0 ;
Original file line number Diff line number Diff line change 104
104
</item >
105
105
<item name =" tooltip" xsi : type =" array" >
106
106
<item name =" link" xsi : type =" string" >http://docs.magento.com/m2/ce/user_guide/configuration/scope.html</item >
107
- <item name =" description" xsi : type =" string" translate =" true" >If your Magento site has multiple views , you can set the scope to apply to a specific view .</item >
107
+ <item name =" description" xsi : type =" string" translate =" true" >If your Magento installation has multiple websites , you can edit the scope to associate the customer with a specific site .</item >
108
108
</item >
109
109
</item >
110
110
</argument >
Original file line number Diff line number Diff line change @@ -158,16 +158,20 @@ define([
158
158
* @returns {Abstract } Chainable.
159
159
*/
160
160
_setClasses : function ( ) {
161
- var additional = this . additionalClasses ,
162
- classes ;
161
+ var additional = this . additionalClasses ;
163
162
164
- if ( _ . isString ( additional ) && additional . trim ( ) . length ) {
165
- additional = this . additionalClasses . trim ( ) . split ( ' ' ) ;
166
- classes = this . additionalClasses = { } ;
163
+ if ( _ . isString ( additional ) ) {
164
+ this . additionalClasses = { } ;
167
165
168
- additional . forEach ( function ( name ) {
169
- classes [ name ] = true ;
170
- } , this ) ;
166
+ if ( additional . trim ( ) . length ) {
167
+ additional = additional . trim ( ) . split ( ' ' ) ;
168
+
169
+ additional . forEach ( function ( name ) {
170
+ if ( name . length ) {
171
+ this . additionalClasses [ name ] = true ;
172
+ }
173
+ } , this ) ;
174
+ }
171
175
}
172
176
173
177
_ . extend ( this . additionalClasses , {
Original file line number Diff line number Diff line change 5
5
*/
6
6
require_once dirname (__FILE__ ) . '/ ' . 'bootstrap.php ' ;
7
7
8
- // Generate page
9
- $ objectManager ->create (\Magento \Mtf \Util \Generate \Page::class)->launch ();
10
-
11
8
// Generate fixtures
12
9
$ magentoObjectManagerFactory = \Magento \Framework \App \Bootstrap::createObjectManagerFactory (BP , $ _SERVER );
13
10
$ magentoObjectManager = $ magentoObjectManagerFactory ->create ($ _SERVER );
14
- $ objectManager ->create (\Magento \Mtf \Util \Generate \Fixture::class)->launch ();
15
11
16
12
// Generate repositories
17
13
$ magentoObjectManager ->get (\Magento \Framework \App \State::class)->setAreaCode ('frontend ' );
18
- $ objectManager ->create (\Magento \Mtf \Util \Generate \Repository::class)->launch ();
19
14
20
15
// Generate factories for old end-to-end tests
21
16
$ magentoObjectManager ->create (\Magento \Mtf \Util \Generate \Factory::class)->launch ();
22
17
18
+ $ generatorPool = $ objectManager ->get ('Magento\Mtf\Util\Generate\Pool ' );
19
+ foreach ($ generatorPool ->getGenerators () as $ generator ) {
20
+ if (!$ generator instanceof \Magento \Mtf \Util \Generate \LauncherInterface) {
21
+ throw new \InvalidArgumentException (
22
+ 'Generator ' . get_class ($ generator ) . ' should implement LauncherInterface '
23
+ );
24
+ }
25
+ $ generator ->launch ();
26
+ }
27
+
23
28
\Magento \Mtf \Util \Generate \GenerateResult::displayResults ();
Original file line number Diff line number Diff line change 16
16
* A generic layout response can be used for rendering any kind of layout
17
17
* So it comprises a response body from the layout elements it has and sets it to the HTTP response
18
18
*
19
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
20
+ *
19
21
* @api
20
22
*/
21
23
class Layout extends AbstractResult
@@ -160,10 +162,10 @@ public function renderResult(ResponseInterface $httpResponse)
160
162
{
161
163
\Magento \Framework \Profiler::start ('LAYOUT ' );
162
164
\Magento \Framework \Profiler::start ('layout_render ' );
163
-
165
+
164
166
$ this ->eventManager ->dispatch ('layout_render_before ' );
165
167
$ this ->eventManager ->dispatch ('layout_render_before_ ' . $ this ->request ->getFullActionName ());
166
-
168
+
167
169
$ this ->applyHttpHeaders ($ httpResponse );
168
170
$ this ->render ($ httpResponse );
169
171
Original file line number Diff line number Diff line change 98
98
* @protected
99
99
*/
100
100
_onMouseMove : function ( e ) {
101
- var target = $ ( e . target ) ;
102
- target = target . is ( this . trigger ) || target . is ( this . options . editSelector ) ?
103
- target :
104
- target . parents ( this . options . editSelector ) . first ( ) ;
101
+ var target = $ ( e . target ) ,
102
+ inner = target . find ( this . options . editSelector ) ;
105
103
106
- if ( target . size ( ) ) {
104
+ if ( $ ( e . target ) . is ( 'button' ) && inner . length ) {
105
+ target = inner ;
106
+ } else if ( ! target . is ( this . trigger ) && ! target . is ( this . options . editSelector ) ) {
107
+ target = target . parents ( this . options . editSelector ) . first ( ) ;
108
+ }
109
+
110
+ if ( target . length ) {
107
111
if ( ! target . is ( this . trigger ) ) {
108
112
this . _setPosition ( target ) ;
109
113
this . currentTarget = target ;
You can’t perform that action at this time.
0 commit comments