Closed (fixed)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
28 Oct 2010 at 19:07 UTC
Updated:
29 Jan 2011 at 01:17 UTC
Hello,
I have recently made a few modifications into uc_attributes.module to avoid theses errors (when showing a product with an uc_attribute form selector) :
Notice: Undefined property: stdClass::$format in _uc_attribute_alter_form() (line 823 of /public_html/sites/all/modules/ubercart/uc_attribute/uc_attribute.module).
Notice: Undefined property: stdClass::$default_option in _uc_attribute_alter_form() (line 824 of /public_html/sites/all/modules/ubercart/uc_attribute/uc_attribute.module).
Attached the patch to resolve this. To review.
Best regards.
| Comment | File | Size | Author |
|---|---|---|---|
| uc_attribute-Notice_Undefined_property.patch | 2.06 KB | lphm |
Comments
Comment #1
Island Usurper commentedThis patch doesn't apply. And I'm not seeing the error anymore, so the problem probably got fixed when the API changes to attributes were ported to UC 3.x. Tentatively setting to fixed.
Comment #3
gman_ commentedReceived this error:
Notice: Undefined property: stdClass::$default_option in _uc_attribute_alter_form() (line 1298 of /home/mystore/public_html/store/sites/all/modules/ubercart/uc_attribute/uc_attribute.module).
This patch: http://drupal.org/files/issues/uc_attribute-Notice_Undefined_property.patch fixed it