Closed (fixed)
Project:
Ubercart
Version:
8.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2013 at 01:30 UTC
Updated:
4 Feb 2018 at 21:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tr commentedAdded the #empty option to satisfy the test.
Comment #3
longwaveThanks. Hooray for testbot!
Comment #4
longwaveThis patch also removes theme_uc_object_attributes_form().
Comment #6
longwaveThis patch also removes theme_uc_object_options_form().
Comment #8
longwave#6 included two text changes, which need to be accounted for in the tests.
Comment #9
longwaveCommitted #8.
This patch removes theme_uc_order_status_table() and adds a test for the order workflow form.
Comment #10
longwaveCommitted #9.
Comment #11
tr commented#locked? What's that?
Comment #12
longwave#locked is set in the form constructor to $status['locked'], which is TRUE for system-owned statuses that cannot be removed or have their state changed.
Comment #13
tr commentedYeah, it looks like a commerce-ism to me - can't find #locked anywhere in core, in the docs, or in the change notices.
Comment #14
longwaveThis isn't a Commerce-ism, core uses the "locked" concept for fields as well. I added documentation for it in \Drupal\uc_order\Entity\OrderStatus in #2156843: Convert order status to config entity:
If you're questioning why it's $form['#locked'], it seems a suitable place to store the flags in the constructor so they can be used in the submit callback - if you have a better suggestion I'm happy to consider it.
Comment #15
longwaveThis patch removes theme_uc_stock_edit_form().
Comment #17
longwaveComment #18
longwaveCommitted #17.
Comment #19
longwaveThis patch removes theme_uc_product_kit_items_form().
Comment #20
longwaveCommitted #19.
Comment #21
tr commentedIf there are any other instances still in the code base those can be handled on a case-by-case basis with new issues.