Closed (fixed)
Project:
Ubercart
Version:
8.x-4.x-dev
Component:
Products
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2015 at 15:21 UTC
Updated:
21 Jan 2016 at 22:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
bjaxelsen commentedComment #3
tr commentedIt looks like the unique form ID code got lost in the port when hook_forms() was removed. Here's a patch to restore this capability. Can you test it?
Comment #5
tr commentedThis patch fixes product kit add-to-cart forms too.
Comment #9
bjaxelsen commentedThanks for quick action!
After changing a little bit in uc_product/src/Plugin/views/field/AddToCart.php (see patch) the problem is solved.
I am not quite sure why the testCatalogAttribute() test fails.
Comment #10
longwaveI think BuyItNowForm (and AddToCartForm?) also needs to implement \Drupal\Core\Form\BaseFormIdInterface so hook_form_BASE_FORM_ID_alter() will work.
Comment #11
tr commentedAdded BaseFormIdInterface and getBaseFormId(), fixed some comments related to base forms.
Comment #12
longwaveCommitted, thanks for the report and fix.