confirm_line_item_delete js function does not find #edit-li-delete-id

function should become

function confirm_line_item_delete(message, img_id) {
  if (confirm(message)) {
    var li_id = img_id.substring(3);
    jQuery('[name=li_delete_id]').val(li_id);
    jQuery('#uc-order-edit-form #edit-submit-changes').get(0).click();
  }
}
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bwynants’s picture

FileSize
435 bytes

patch added

Status: Needs review » Needs work

The last submitted patch, removelineitem-1186988.patch, failed testing.

bwynants’s picture

Version: 7.x-3.0-beta3 » 7.x-3.x-dev
Status: Needs work » Needs review
FileSize
2.72 KB

sorry new at git, i followed the http://drupal.org/node/1054616 instructions but how do I get rid of the other fix I did (Issue #1186914)? it is also in this path?
or should it be in here? some help/advice is appreciated...

bwynants’s picture

FileSize
813 bytes

correct patch

TR’s picture

OK, but what's the error you're seeing and where do you see the error? I can't test your patch to see if it fixes the error if I don't know what the error is.

bwynants’s picture

on the order edit you can not delete line items that you have added, the delete button is available for manually added line items but it does not work.

Prerequisite: #1186894: add a line item to be able to add line items when editing an order.

longwave’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

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