File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Catalog/Controller/Adminhtml/Product/Attribute Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,8 @@ public function execute()
194
194
$ attributeCode = $ model && $ model ->getId ()
195
195
? $ model ->getAttributeCode ()
196
196
: $ this ->getRequest ()->getParam ('attribute_code ' );
197
- $ attributeCode = $ attributeCode ?: $ this ->generateCode ($ this ->getRequest ()->getParam ('frontend_label ' )[0 ]);
197
+ $ frontendLabel = $ this ->getRequest ()->getParam ('frontend_label ' )[0 ] ?? null ;
198
+ $ attributeCode = $ attributeCode ?: $ this ->generateCode ($ frontendLabel );
198
199
$ data ['attribute_code ' ] = $ attributeCode ;
199
200
200
201
//validate frontend_input
Original file line number Diff line number Diff line change @@ -43,10 +43,11 @@ public function __construct(
43
43
public function process ($ qty )
44
44
{
45
45
$ this ->localFilter ->setOptions (['locale ' => $ this ->localeResolver ->getLocale ()]);
46
- $ qty = $ this ->localFilter ->filter ($ qty );
46
+ $ qty = $ this ->localFilter ->filter (( string ) $ qty );
47
47
if ($ qty < 0 ) {
48
48
$ qty = null ;
49
49
}
50
+
50
51
return $ qty ;
51
52
}
52
53
}
You can’t perform that action at this time.
0 commit comments