AyeCode / invoicing

GetPaid (Formerly the Invoicing plugin) is a lightweight Payments and Invoicing system for WordPress. It can be used to sell anything online via payment forms or buy now buttons that can be added to any landing page. It can also be used by freelancers to manage their Invoices or by 3rd party Themes and Plugins as their payment system. GeoDirectory currently uses GetPaid as its payment system
https://wpgetpaid.com/
Other
37 stars 23 forks source link

wpinv_get_item_by: bug when field is 'id' #751

Closed aayla-secura closed 1 year ago

aayla-secura commented 1 year ago

Line 30 of wpinv-item-functions.php says

return wpinv_get_item_by_id( $field );

when it should be

return wpinv_get_item_by_id( $value );

since $field is 'id' and $value holds the actual value expected by wpinv_get_item_by_id

picocodes commented 1 year ago

Hi @aayla-secura,

Thanks for the heads up. We fixed it.