Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Based on Integrate Order Revisions with Views:
The product revision system is in place, but there's currently no way to view changes.
Comment | File | Size | Author |
---|---|---|---|
#1 | commerce-integrate_product_revisions_with_views-1827292-1.patch | 21.68 KB | cvangysel |
Comments
Comment #1
cvangysel CreditAttribution: cvangysel commentedAttached to this post is a patch that integrates product revisions with views and adds a revisions tab to the admin product view.
Comment #2
rcross CreditAttribution: rcross commentedlooks ok to me. I would suggest making the default order to be by revision id. otherwise good to go.
Comment #3
brunorios1 CreditAttribution: brunorios1 commentedlooks ok to me too...
Comment #4
rcross CreditAttribution: rcross commentedComment #5
rszrama CreditAttribution: rszrama commentedAgreed with Ryan about the default order and also added in a relationship to the user who created the revision. I'm not a huge fan of the administrative permission based access control - but I don't know a better way to inject access control into the View. Maybe we can consider a custom argument handler for our entities in the future if need be to make it based on permissions / product access. This gets the job done for now, though.
Thanks for the reviews.
Commit: http://drupalcode.org/project/commerce.git/commitdiff/fdf33d4