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.
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();
}
}
Comment | File | Size | Author |
---|---|---|---|
#4 | 1186988-removelineitem.patch | 813 bytes | bwynants |
#3 | 1186988-removelineitem.patch | 2.72 KB | bwynants |
#1 | removelineitem-1186988.patch | 435 bytes | bwynants |
Comments
Comment #1
bwynants CreditAttribution: bwynants commentedpatch added
Comment #3
bwynants CreditAttribution: bwynants commentedsorry 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...
Comment #4
bwynants CreditAttribution: bwynants commentedcorrect patch
Comment #5
TR CreditAttribution: TR commentedOK, 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.
Comment #6
bwynants CreditAttribution: bwynants commentedon 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.
Comment #7
longwaveCommitted, thanks.