-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace into the layout adminhtml_order_shipment_new.xml block alias … #8353
Replace into the layout adminhtml_order_shipment_new.xml block alias … #8353
Conversation
…attribute with block name attribute to allow template overrides.
@diglin thanks for contribution. |
@vrann it's needed otherwise you can't overwrite the renderer template properly. You can't get a block via its alias but only via its name. A block having an alias but no name, receive an anonymous block name like If a developer wants to customize or change the renderer block, he can't because Thanks to the commited changes, a developer can extends/customize the renderer like that In File
|
@diglin Thank you for the explanation; it makes sense. |
@diglin can you please come up with unique names for the blocks? "bundle" and "default" are pretty generic and there are high chances that another block with the same name will call collision. Block names should be unique within context. Something like "sales_order_bundle_renderrer" and "sales_order_bundle_default" will work |
@vrann I agree hw that's what comes from core code. I didn't changed anything, I just setup a replacement of |
@diglin yes, please, go ahead. |
@vrann done :-) |
@diglin change looks good, accepting |
@diglin Thank you for your contribution to Magento 2 project! Your pull request has been successfully merged! |
@okorshenko, @vrann, @diglin this fix is incorrect and causes a fatal error. Try to create shipment for an order placed with a simple or bundle product. If specified rendered doesn't exist, the default must be used, but you changed the default name to shipment specific and now it doesn't work. |
@joni-jones integration test demonstrating problem would be really nice |
@orlangur, follow functional tests: |
No-no, I'm not saying the issue is hard to reproduce. Just would be nice to enforce correct behavior with mandatory test. Are these functional tests failing now after merge? |
Yes, these tests are failed now. |
Dunno why it was merged then :-| Could you report new issue referring to this PR? Especially mentioning functional tests you found broken. Don't want to arrogate your credits ;) |
Mentioned tests don't present in required test plans. We have created internal ticket (MAGETWO-64909) and fix will be merged ASAP. |
Ah, ok, didn't notice you are a member of Magento crew ("Member" label indicated this some time ago, now I see only "Contributor"s). Too bad full functional tests suite is still not mandatory or at least such an important cases not covered with integration tests. Thanks for quick reaction 👍 |
…attribute with block name attribute to allow template overrides.