Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Product
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2018 at 14:23 UTC
Updated:
11 Apr 2018 at 12:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lawxen commentedComment #3
lawxen commentedComment #5
lawxen commentedComment #6
lawxen commentedComment in https://www.drupal.org/project/commerce/issues/2937918#comment-12545293
Comment #7
bojanz commentedI approve of the general idea.
Let's implement hook_form_FORM_ID_alter() instead, so that we can remove the $form_id comparison from the IF. Simpler that way, and matches what we do in other form alters.
Comment #8
lawxen commented@bojanz
Thanks for the advice, I have changed to hook_form_FORM_ID_alter() and hide "Allow users to add existing variations" directly, not disable it.
Comment #9
bojanz commentedTweaked and committed, thanks!