Ubercart 3.0 + Drupal 7.12

I get this error after i click on the "Option Prices" tab.

Notice: Undefined variable: object in uc_price_per_role_option_prices_form() (line 386 of /srv/www/clients/client1/web1/web/sites/all/modules/uc_price_per_role/uc_price_per_role.module).
Notice: Trying to get property of non-object in uc_price_per_role_option_prices_form() (line 386 of /srv/www/clients/client1/web1/web/sites/all/modules/uc_price_per_role/uc_price_per_role.module).

Comments

rexgonzaga23’s picture

I also encountered this problem ..Anyone knows the solution ??

goodeit’s picture

Status: Active » Needs review

Here's a fix for this error. On line 386:

- drupal_set_title(check_plain($object->title));
+ drupal_set_title(check_plain($product->title));
DanZ’s picture

Category: support » bug
Priority: Major » Normal
Status: Needs review » Fixed

Committed #2. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.