Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Order
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
6 Apr 2017 at 14:06 UTC
Updated:
20 Feb 2018 at 23:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vasikeThere is a new PR on this
https://github.com/drupalcommerce/commerce/pull/711
Extra:
- Added "No results behavior" for the "Order items" view.
- Update hook to revert the view
- Update the OrderAdminTest::testAdminOrderView() to test the changes made.
p.s. hmm, i made "by default" Needs review ;)
Comment #3
bojanz commentedComment #4
finneWhat is the preferred place to work on commerce code: DO or github?
Comment #5
finneReview:
This patch fixes the problem, but destroys any customisation that might have been done to the commerce_order_item_table view. Does it need to warn the user beforehand?
Other options:
a) test for values in the twig template, and print 0 / print no line if no value found.
b) test for value in PriceTwigExtension.php and assume 0 if no value.
c) OrderTotalSummary.php could return 0 if no prices found.
d) Order::getTotalPrice() could return 0 if no price found.
Comment #6
replicaobscuraCurrent patch conflicts with existing commerce_order_post_update_6() function introduced in recent commerce version.
Comment #7
replicaobscuraSince the patch still applies otherwise, I just changed it from update hook 6 to 7 in the patch. Here's a new version to test.
Comment #8
vasike@bmcclure : Thanks for the support
I updated the PR to fix the merge conflict
Is there anything else?
Comment #9
bojanz commentedWould be nice to get this into the next release.
Comment #10
bojanz commentedThe crash got fixed in #2871569: OrderTotalSummary and OrderItemTable formatters can crash when used inside Views, which leaves the view and tests in this issue.
Comment #12
bojanz commentedCommitted.