Skip to content

Commit 95faca4

Browse files
author
Slabko,Michael(mslabko)
committed
Merge pull request #186 from magento-goinc/MAGETWO-45552
[GoInc+Dragons] BugFixing again
2 parents 3148312 + 556c07c commit 95faca4

25 files changed

+53
-37
lines changed

app/code/Magento/Customer/view/frontend/email/account_new.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{{trans
2020
'To sign in to our site, use these credentials during checkout or on the <a href="%customer_url">My Account</a> page:'
2121

22-
customer_url=$this.getUrl($store,'customer/account/')
22+
customer_url=$this.getUrl($store,'customer/account/',[_nosid:1])
2323
|raw}}
2424
</p>
2525
<ul>
@@ -30,7 +30,7 @@
3030
{{trans
3131
'Forgot your account password? Click <a href="%reset_url">here</a> to reset it.'
3232

33-
reset_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token]])"
33+
reset_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token],_nosid:1])"
3434
|raw}}
3535
</p>
3636
<p>{{trans "When you sign in to your account, you will be able to:"}}</p>

app/code/Magento/Customer/view/frontend/email/account_new_confirmation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<table class="inner-wrapper" border="0" cellspacing="0" cellpadding="0" align="center">
2424
<tr>
2525
<td align="center">
26-
<a href="{{var this.getUrl($store,'customer/account/confirm/',[_query:[id:$customer.id,key:$customer.confirmation,back_url:$back_url]])}}" target="_blank">{{trans "Confirm Your Account"}}</a>
26+
<a href="{{var this.getUrl($store,'customer/account/confirm/',[_query:[id:$customer.id,key:$customer.confirmation,back_url:$back_url],_nosid:1])}}" target="_blank">{{trans "Confirm Your Account"}}</a>
2727
</td>
2828
</tr>
2929
</table>

app/code/Magento/Customer/view/frontend/email/account_new_confirmed.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{trans
1919
'To sign in to our site, use these credentials during checkout or on the <a href="%customer_url">My Account</a> page:'
2020

21-
customer_url=$this.getUrl($store,'customer/account/')
21+
customer_url=$this.getUrl($store,'customer/account/',[_nosid:1])
2222
|raw}}
2323
</p>
2424
<ul>
@@ -29,7 +29,7 @@
2929
{{trans
3030
'Forgot your account password? Click <a href="%reset_url">here</a> to reset it.'
3131

32-
reset_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token]])"
32+
reset_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token],_nosid:1])"
3333
|raw}}
3434
</p>
3535
<p>{{trans "When you sign in to your account, you will be able to:"}}</p>

app/code/Magento/Customer/view/frontend/email/account_new_no_password.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{trans
1919
'To sign in to our site and set a password, click on the <a href="%create_password_url">link</a>:'
2020

21-
create_password_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token]])"
21+
create_password_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token],_nosid:1])"
2222
|raw}}
2323
</p>
2424
<ul>

app/code/Magento/Customer/view/frontend/email/password_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<table class="inner-wrapper" border="0" cellspacing="0" cellpadding="0" align="center">
2222
<tr>
2323
<td align="center">
24-
<a href="{{var this.getUrl($store,'customer/account/createPassword',[_query:[id:$customer.id,token:$customer.rp_token]])}}" target="_blank">{{trans "Set a New Password"}}</a>
24+
<a href="{{var this.getUrl($store,'customer/account/createPassword',[_query:[id:$customer.id,token:$customer.rp_token],_nosid:1])}}" target="_blank">{{trans "Set a New Password"}}</a>
2525
</td>
2626
</tr>
2727
</table>

app/code/Magento/Customer/view/frontend/email/password_reset_confirmation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<table class="inner-wrapper" border="0" cellspacing="0" cellpadding="0" align="center">
2222
<tr>
2323
<td align="center">
24-
<a href="{{var this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token]])}}" target="_blank">{{trans "Set a New Password"}}</a>
24+
<a href="{{var this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token],_nosid:1])}}" target="_blank">{{trans "Set a New Password"}}</a>
2525
</td>
2626
</tr>
2727
</table>

app/code/Magento/Eav/Model/Entity/Attribute/Set.php

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,7 @@ public function organizeData($data)
190190
}
191191
if ($data['groups']) {
192192
foreach ($data['groups'] as $group) {
193-
$modelGroup = $this->_attrGroupFactory->create();
194-
$modelGroup->setId(
195-
is_numeric($group[0]) && $group[0] > 0 ? $group[0] : null
196-
)->setAttributeGroupName(
197-
$group[1]
198-
)->setAttributeSetId(
199-
$this->getId()
200-
)->setSortOrder(
201-
$group[2]
202-
);
193+
$modelGroup = $this->initGroupModel($group);
203194

204195
if ($data['attributes']) {
205196
foreach ($data['attributes'] as $attribute) {
@@ -253,6 +244,31 @@ public function organizeData($data)
253244
return $this;
254245
}
255246

247+
/**
248+
* @param array $group
249+
* @return Group
250+
*/
251+
private function initGroupModel($group)
252+
{
253+
$modelGroup = $this->_attrGroupFactory->create();
254+
$modelGroup->setId(
255+
is_numeric($group[0]) && $group[0] > 0 ? $group[0] : null
256+
)->setAttributeGroupName(
257+
$group[1]
258+
)->setAttributeSetId(
259+
$this->getId()
260+
)->setSortOrder(
261+
$group[2]
262+
);
263+
if ($modelGroup->getId()) {
264+
$group = $this->_attrGroupFactory->create()->load($modelGroup->getId());
265+
if ($group->getId()) {
266+
$modelGroup->setAttributeGroupCode($group->getAttributeGroupCode());
267+
}
268+
}
269+
return $modelGroup;
270+
}
271+
256272
/**
257273
* Validate attribute set name
258274
*

app/code/Magento/Sales/view/frontend/email/creditmemo_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<p class="greeting">{{trans "%name," name=$order.getCustomerName()}}</p>
2727
<p>
2828
{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}
29-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
29+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
3030
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
3131
{{depend store_hours}}
3232
{{trans 'Our hours are <span class="no-link">%store_hours</span>.' store_hours=$store_hours |raw}}

app/code/Magento/Sales/view/frontend/email/creditmemo_update.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
order_status=$order.getStatusLabel()
2828
|raw}}
2929
</p>
30-
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}</p>
30+
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}</p>
3131
<p>
3232
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
3333
{{depend store_hours}}

app/code/Magento/Sales/view/frontend/email/invoice_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<p class="greeting">{{trans "%name," name=$order.getCustomerName()}}</p>
2727
<p>
2828
{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}
29-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
29+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
3030
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
3131
{{depend store_hours}}
3232
{{trans 'Our hours are <span class="no-link">%store_hours</span>.' store_hours=$store_hours |raw}}

app/code/Magento/Sales/view/frontend/email/invoice_update.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
order_status=$order.getStatusLabel()
2828
|raw}}
2929
</p>
30-
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}</p>
30+
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}</p>
3131
<p>
3232
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
3333
{{depend store_hours}}

app/code/Magento/Sales/view/frontend/email/order_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<p>
2525
{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}
2626
{{trans "Once your package ships we will send you a tracking number."}}
27-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
27+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
2828
</p>
2929
<p>
3030
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.

app/code/Magento/Sales/view/frontend/email/order_update.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
order_status=$order.getStatusLabel()
2727
|raw}}
2828
</p>
29-
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}</p>
29+
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}</p>
3030
<p>
3131
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
3232
{{depend store_hours}}

app/code/Magento/Sales/view/frontend/email/shipment_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<p class="greeting">{{trans "%name," name=$order.getCustomerName()}}</p>
2828
<p>
2929
{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}
30-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
30+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
3131
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
3232
{{depend store_hours}}
3333
{{trans 'Our hours are <span class="no-link">%store_hours</span>.' store_hours=$store_hours |raw}}

app/code/Magento/Sales/view/frontend/email/shipment_update.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
order_status=$order.getStatusLabel()
2828
|raw}}
2929
</p>
30-
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}</p>
30+
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}</p>
3131
<p>
3232
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
3333
{{depend store_hours}}

app/code/Magento/User/view/adminhtml/email/password_reset_confirmation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
{{trans "If you requested this change, reset your password here:"}}
1818

19-
{{store url="admin/auth/resetpassword/" _query_id=$user.id _query_token=$user.rp_token}}
19+
{{store url="admin/auth/resetpassword/" _query_id=$user.id _query_token=$user.rp_token _nosid=1}}
2020

2121
{{trans "If you did not make this request, you can ignore this email and your password will remain the same."}}
2222

app/design/frontend/Magento/luma/Magento_Customer/email/account_new.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{{trans
2020
'To sign in to our site, use these credentials during checkout or on the <a href="%customer_url">My Account</a> page:'
2121

22-
customer_url=$this.getUrl($store,'customer/account/')
22+
customer_url=$this.getUrl($store,'customer/account/',[_nosid:1])
2323
|raw}}
2424
</p>
2525
<table class="email-credentials">
@@ -36,7 +36,7 @@
3636
{{trans
3737
'Forgot your account password? Click <a href="%reset_url">here</a> to reset it.'
3838

39-
reset_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token]])"
39+
reset_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token],_nosid:1])"
4040
|raw}}
4141
</p>
4242
<br />

app/design/frontend/Magento/luma/Magento_Sales/email/creditmemo_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<p class="greeting">{{trans "%name," name=$order.getCustomerName()}}</p>
2727
<p>
2828
{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}
29-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
29+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
3030
</p>
3131
<p>
3232
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>.' store_email=$store_email |raw}}

app/design/frontend/Magento/luma/Magento_Sales/email/creditmemo_update.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
increment_id=$order.increment_id
2727
order_status=$order.getStatusLabel()
2828
|raw}}
29-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
29+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
3030
</p>
3131
<p>
3232
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>.' store_email=$store_email |raw}}

app/design/frontend/Magento/luma/Magento_Sales/email/invoice_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<p class="greeting">{{trans "%name," name=$order.getCustomerName()}}</p>
2727
<p>
2828
{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}
29-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
29+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
3030
</p>
3131
<p>
3232
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>.' store_email=$store_email |raw}}

app/design/frontend/Magento/luma/Magento_Sales/email/invoice_update.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
increment_id=$order.increment_id
2727
order_status=$order.getStatusLabel()
2828
|raw}}
29-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
29+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
3030
</p>
3131
<p>
3232
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>.' store_email=$store_email |raw}}

app/design/frontend/Magento/luma/Magento_Sales/email/order_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<p>
2525
{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}
2626
{{trans "Once your package ships we will send you a tracking number."}}
27-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
27+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
2828
</p>
2929
<p>
3030
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>.' store_email=$store_email |raw}}

app/design/frontend/Magento/luma/Magento_Sales/email/order_update.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
increment_id=$order.increment_id
2626
order_status=$order.getStatusLabel()
2727
|raw}}
28-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
28+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
2929
</p>
3030
<p>
3131
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>.' store_email=$store_email |raw}}

app/design/frontend/Magento/luma/Magento_Sales/email/shipment_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<p class="greeting">{{trans "%name," name=$order.getCustomerName()}}</p>
2828
<p>
2929
{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}
30-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
30+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
3131
</p>
3232
<p>
3333
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>.' store_email=$store_email |raw}}

0 commit comments

Comments
 (0)