Comments

Status: Needs review » Needs work

The last submitted patch, remove-theme_uc_attribute_options_form.patch, failed testing.

tr’s picture

Status: Needs work » Needs review
StatusFileSize
new6.17 KB

Added the #empty option to satisfy the test.

longwave’s picture

Thanks. Hooray for testbot!

longwave’s picture

StatusFileSize
new14.95 KB

This patch also removes theme_uc_object_attributes_form().

Status: Needs review » Needs work

The last submitted patch, 4: 2154953-remove-theme_uc_attribute_options_form-4.patch, failed testing.

longwave’s picture

Status: Needs work » Needs review
StatusFileSize
new24.49 KB

This patch also removes theme_uc_object_options_form().

Status: Needs review » Needs work

The last submitted patch, 6: 2154953-remove-theme_uc_attribute_options_form-6.patch, failed testing.

longwave’s picture

Status: Needs work » Needs review
StatusFileSize
new25.73 KB
new1.24 KB

#6 included two text changes, which need to be accounted for in the tests.

longwave’s picture

StatusFileSize
new7.13 KB

Committed #8.

This patch removes theme_uc_order_status_table() and adds a test for the order workflow form.

longwave’s picture

Status: Needs review » Active

Committed #9.

tr’s picture

#locked? What's that?

longwave’s picture

#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.

tr’s picture

Yeah, it looks like a commerce-ism to me - can't find #locked anywhere in core, in the docs, or in the change notices.

longwave’s picture

This 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:

  /**
   * Locked statuses cannot be edited.
   *
   * @var bool
   */
  public $locked = FALSE;

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.

longwave’s picture

Status: Active » Needs review
StatusFileSize
new6.16 KB

This patch removes theme_uc_stock_edit_form().

Status: Needs review » Needs work

The last submitted patch, 15: 2154953-remove-theme_uc_stock_edit_form.patch, failed testing.

longwave’s picture

Status: Needs work » Needs review
StatusFileSize
new9.04 KB
longwave’s picture

Status: Needs review » Active

Committed #17.

longwave’s picture

Status: Active » Needs review
StatusFileSize
new3.43 KB

This patch removes theme_uc_product_kit_items_form().

longwave’s picture

Status: Needs review » Active

Committed #19.

tr’s picture

Status: Active » Fixed

If there are any other instances still in the code base those can be handled on a case-by-case basis with new issues.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.