Closed (duplicate)
Project:
Ubercart Marketplace
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2012 at 23:31 UTC
Updated:
14 Oct 2012 at 18:31 UTC
Jump to comment: Most recent
Comments
Comment #1
iRex commentedhaving the same issue. Does anyone have an answer?
thx
Comment #2
eduarrulho commentedUS: having the same issue. Does anyone have an answer?
Brazil: Também tenho o mesmo problema, alguém sabe a solução?
Agradecido!
Comment #3
Salif commentedSame issue
Notice: Undefined index: #node in mp_product_kit_form_alter() (line 14 of /home/.../sites/all/modules/ubercart_marketplace/mp_product_kit/mp_product_kit.module).
Comment #4
sabrawy commentedsame here + im clicking on rebuild permission but its not working
Comment #5
sabrawy commentedi have uninstalled "Marketplace Product Kit" till someone can fix it
Comment #6
Bigo commentedHi,
this works for me.
I've set the control of variable $form['#node'] beacuse it exists surley in edit page of a product kit and not in other pages.
Then i've added "AND type IN ('product')" statement in query
And changed the reading of result in -> foreach ($result as $product) { which is drupal 7 compatible.
of course it could be done better but i've to finish work today ;)
hope it helps!
Comment #7
liliplanet commentedperfect, it works, thank you!
Comment #8
phizes commentedThe issue arises as the modules' hook_form_alter() runs on every form, regardless of whether it is or is not a node form, or a node of a different content type.
Closing as duplicate of #1812520: Patch which ports/should fix mp_product_kit for Drupal 7 which has a patch which addresses this issue as well as a few more.
Comment #9
kim51 commented> Bigo
It works, thank you!