On a page 'admin/store/customers/orders/%uid' there is a link "Create an order for this customer" that points to 'admin/store/orders/create/%uid'. But the latter page acts like a regular order creation page for customer number 0, i.e. %uid is just contained in the path but not used in the code.

As far as I can see, there is no path like 'admin/store/orders/create/%uid' in hook_menu() (only 'admin/store/orders/create'), functions uc_order_create() and uc_order_create_form() don't use %uid either.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ergophobe’s picture

Same problem here on UC 2.4 so it's not a new problem.

TR’s picture

Version: 6.x-2.6 » 6.x-2.x-dev
Status: Active » Needs review
FileSize
2.79 KB

Please try this patch and see if it works for you.

Status: Needs review » Needs work

The last submitted patch, 1247090-create-order.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
2.85 KB

That was a real test failure. Let's try this again.

TR’s picture

Status: Needs review » Fixed

Committed.

TR’s picture

Version: 6.x-2.x-dev » 7.x-3.x-dev
Status: Fixed » Patch (to be ported)

Need to examine whether we should do the same thing in 7.x-3.x where the create order page is a bit different.

longwave’s picture

Status: Patch (to be ported) » Fixed

We need to take a slightly different approach in D7, but fixed all the same: http://drupalcode.org/project/ubercart.git/commitdiff/1218a93

Status: Fixed » Closed (fixed)

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

muhleder’s picture

Version: 7.x-3.x-dev » 6.x-2.x-dev
Status: Closed (fixed) » Needs review
FileSize
804 bytes

#4 Doesn't quite work from what I can tell

$account is assumed to be loaded, but it's actually $uid we get from the url.

This patch should fix.

Status: Needs review » Needs work

The last submitted patch, 1247090-create-order-take-3.patch, failed testing.

muhleder’s picture

Status: Needs work » Closed (fixed)

Actually, scratch that, it does work already. I probably just needed to clear caches after applying the patch.