Closed (duplicate)
Project:
e-Commerce
Version:
5.x-3.x-dev
Component:
flexicharge
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 May 2007 at 11:49 UTC
Updated:
24 May 2007 at 04:42 UTC
Hi,
we're using drupal 5.1 and ecommerce 5.x-3.x-dev on php 5.2.0. the flexicharge does not show up on the checkout process due to the bug in the array_intersect function used while eliminating role based flexicharges.
here's the attached patch.
$ diff modules/ecommerce/contrib/flexicharge/flexicharge_new.module modules/ecommerce/contrib/flexicharge/flexicharge_old.module
155c155
< if (is_array($charge->roles) && !count(array_intersect_key($user->roles, $charge->roles))) {
---
> if (is_array($charge->roles) && !count(array_intersect($user->roles, $charge->roles))) {
thanks.
yashesh bhatia
| Comment | File | Size | Author |
|---|---|---|---|
| flexicharge_0.patch | 678 bytes | yasheshb |
Comments
Comment #1
brmassa commentedYashesh,
The real problem comes when you edit the flexichage and choose no product types. despite the "No selection indicates all products." on description, the current code doesnt use flexichage without product types asigned.
see http://drupal.org/node/131653
regards,
massa