Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Creating a new revision of a product node results in this error message every time I visit that page again:
Notice: Undefined property: stdClass::$sell_price in uc_price_per_role_node_load() (line 305 of /var/www/html/drupal_dev/sites/all/modules/uc_price_per_role/uc_price_per_role.module).
I may have applied a coupple patches. The offending line is:
$original_price = $node->sell_price;
Comment | File | Size | Author |
---|---|---|---|
#2 | 1831360-uc_price_per_role.patch | 797 bytes | Dan Z |
Comments
Comment #1
Dan Z CreditAttribution: Dan Z commentedSome code above the offending line was somehow causing the problem. It was indexing on $row->nid when it should have been indexing on $row->vid. I fixed that, and it somehow solved the problem:
There needs to be a patch for this. I can submit one eventually, but I don't remember the command to do it....
Comment #2
Dan Z CreditAttribution: Dan Z commentedOk, here's a patch with a fix. It assumes the patches in #1420394: Role Price Not Showing Up In Cart or Checkout have already been applied.
Comment #3
Dan Z CreditAttribution: Dan Z commentedComment #4
Dan Z CreditAttribution: Dan Z commentedOops, this is a duplicate of #1366378: Per role prices wont show in node edit page.