File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
app/code/Magento/SalesRule
Controller/Adminhtml/Promo/Quote Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,8 @@ public function execute()
6464 {
6565 $ data = $ this ->getRequest ()->getPostValue ();
6666 if ($ data ) {
67- if ($ data ['simple_free_shipping ' ] === '' ) {
68- $ data ['simple_free_shipping ' ] = null ;
69- }
67+ $ data ['simple_free_shipping ' ] = isset ($ data ['simple_free_shipping ' ]) ? $ data ['simple_free_shipping ' ] : null ;
68+
7069 try {
7170 /** @var $model \Magento\SalesRule\Model\Rule */
7271 $ model = $ this ->_objectManager ->create (\Magento \SalesRule \Model \Rule::class);
Original file line number Diff line number Diff line change 3737 <fillField selector =" {{AdminCartPriceRulesFormSection.ruleName}}" userInput =" {{CartPriceRuleConditionAndFreeShippingApplied.name}}" stepKey =" fillRuleName" />
3838 <fillField selector =" {{AdminCartPriceRulesFormSection.description}}" userInput =" {{CartPriceRuleConditionAndFreeShippingApplied.description}}" stepKey =" fillDescription" />
3939 <selectOption selector =" {{AdminCartPriceRulesFormSection.websites}}" userInput =" {{CartPriceRuleConditionAndFreeShippingApplied.websites}}" stepKey =" selectWebsites" />
40- <selectOption userInput =" {{SimpleCatalogPriceRule.customerGroups}}" selector =" {{AdminCartPriceRulesFormSection.customerGroups}}" stepKey =" selectCustomerGroups" />
40+ <click selector =" {{AdminCartPriceRulesFormSection.customerGroups}}" stepKey =" expandCustomerGroups" />
41+ <fillField selector =" {{AdminCartPriceRulesFormSection.customerGroupsInput}}" userInput =" General" stepKey =" fillCustomerGroup" />
42+ <click selector =" {{AdminCartPriceRulesFormSection.customerGroupsFirstResult}}" stepKey =" selectGroup" />
43+ <click selector =" {{AdminCartPriceRulesFormSection.customerGroupsDoneBtn}}" stepKey =" closeMultiSelect" />
4144 <selectOption selector =" {{AdminCartPriceRulesFormSection.coupon}}" userInput =" {{CartPriceRuleConditionAndFreeShippingApplied.coupon_type}}" stepKey =" selectCouponType" />
4245 <scrollTo selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" scrollToActionsHeader" />
4346 <actionGroup ref =" AdminCreateCartPriceRuleActionsSectionDiscountFieldsActionGroup" stepKey =" createActiveCartPriceRuleActionsSection" >
You can’t perform that action at this time.
0 commit comments