Closed (fixed)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Orders
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Mar 2011 at 04:32 UTC
Updated:
27 Apr 2011 at 16:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tr commentedI eliminated the PHP notice by removing the second parameter from the function uc_order_admin() - it was a legacy of the D6 version. Committed that fix.
The DB problem is the same as in #975194: Create Order does not follow email address tag recommendations, and gives error, just in a different part of the code.
Comment #2
Anonymous (not verified) commentedI attach working patch fixing this issue. This patch also cleans code as suggested in #975194: Create Order does not follow email address tag recommendations, and gives error, fixes "page arguments" parameter in uc_order_menu() to get rid of PHP notices and also solves bug due to which all user names in column "Customer" contained "User: none" instead of valid user name.
Comment #4
Anonymous (not verified) commentedI change status to RTBC because it is the actual state of things as of now.
Comment #5
longwaveYou should not set your own patches to RTBC - please use "needs review" instead.
I tested your patch and saw "Undefined property: stdClass::$uid" errors on the order search page. The attached patch fixes these and cleans up the code a bit more; uc_order_admin() now takes a condition object instead of a query object, which simplifies uc_order_usearch().
Comment #6
longwaveSlight update on the above, that removes the 1==1 condition in favour of DatabaseCondition::count(), and also fixes the hook_menu entry for /admin/store/orders/view so the status and order ID selector show up.
Comment #7
longwaveMore minor bug fixes. The pager wasn't working, and this patch also removes the /admin/store/orders/sort/% page in favour of using querystrings instead, which seems to work better. Previously, if you selected a status on the order listing and then used the order search page, the status would be filtered during the search - though it wasn't obvious and there was no option shown to change it.
The more I play with this the more I realise this page should just be replaced with a view, though.
Comment #8
Anonymous (not verified) commentedOne more fix - Sales summary report (namely table "Total orders by status" in the bottom of page at admin/store/reports/sales) was still using links to /admin/store/orders/sort/% pages, so I have modified it to use your query strings instead.
I simply appended my patch fixing this issue to your latest patch from message #7. I attach resulting cumulative patch.
Comment #9
longwaveCommitted, thanks for your help with this.
Comment #10
longwave