screenshot: http://prntscr.com/1znae

im getting an error when i try to delete a blank line from a manual product entry.

Notice: Trying to get property of non-object in uc_stock_uc_order_product_delete() (line 152 of /home/xe/public_html/dev/sites/all/modules/ubercart/uc_stock/uc_stock.module).
Notice: Trying to get property of non-object in uc_stock_uc_order_product_delete() (line 152 of /home/xe/public_html/dev/sites/all/modules/ubercart/uc_stock/uc_stock.module).
Notice: Trying to get property of non-object in uc_stock_adjust() (line 171 of /home/xe/public_html/dev/sites/all/modules/ubercart/uc_stock/uc_stock.module).
Notice: Undefined index: op in uc_order_edit_form_submit() (line 1167 of /home/xe/public_html/dev/sites/all/modules/ubercart/uc_order/uc_order.admin.inc).

CommentFileSizeAuthor
#1 1178350.patch1.59 KBTR
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TR’s picture

Status: Active » Needs review
FileSize
1.59 KB

This patch should fix the first three notices. Please test it.

TR’s picture

Priority: Normal » Minor
Status: Needs review » Active

Committed patch in #1.

Last PHP Notice in original report has not been addressed yet:
Notice: Undefined index: op in uc_order_edit_form_submit() (line 1167 of /home/xe/public_html/dev/sites/all/modules/ubercart/uc_order/uc_order.admin.inc).

TR’s picture

Title: Notice: Trying to get property of non-object in uc_stock_uc_order_product_delete() (line 152 » Notice: Undefined index: op in uc_order_edit_form_submit()

Retitling to reflect remaining problem.

longwave’s picture

Status: Fixed » Closed (fixed)

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