Warning: Invalid argument supplied for commerce_pos_form_commerce_pos_order_lookup_alter()

Created on 1 February 2020, over 4 years ago
Updated 9 October 2023, 9 months ago

Found this little bug when there are no POS orders available to lookup.

Warning: Invalid argument supplied for foreach() in commerce_pos_form_commerce_pos_order_lookup_alter() (line 138 of /var/www/html/web/modules/contrib/commerce_pos/modules/receipt/commerce_pos_receipt.module) #0 /var/www/html/web/core/includes/bootstrap.inc(596): _drupal_error_handler_real(2, 'Invalid argumen...', '/var/www/html/w...', 138, Array) #1

So, I've rolled up a patch to fix this.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada wilco

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024