Closed (fixed)
Project:
Ubercart Discounts (Alternative)
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
6 Mar 2009 at 00:01 UTC
Updated:
15 Sep 2009 at 13:00 UTC
You are missing a function, I think. When saving a product I get :
PHP Fatal error: Call to undefined function codeless_discounts_field_content_is_empty()
which causes savinging products to fail which include the cck codeless_discount field. PHP5, drupal 6.10, Ubercart beta4. I added in a stub function for is_empty and things started working again.
Comments
Comment #1
chrisschaub commentedOk, some more info. This bug occurs when you change the codeless cck field settings to allow more than one value, try unlimited. Maybe this shouldn't be allowed. It runs into this bug:
http://drupal.org/node/349548
Comment #2
ryangroe commentedI believe this function is necessary but the codeless discounts CCK field will probably define it as always returning FALSE for performance reasons. I'll look into it more and make the change.
Comment #3
ryangroe commentedI added the function. This change will be part of beta 5 to be released in a few hours.
Comment #4
ryangroe commentedPlease try beta 5 to see if this problem has been fixed.
Comment #5
ezra-g commentedThis has been committed, so I'm marking it as fixed ;).