Active
Project:
UC Ordered Products Reports
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
6 Oct 2009 at 16:52 UTC
Updated:
19 Jan 2023 at 02:17 UTC
Comments
Comment #1
cayenne commentedHere is the pertinent code fix from the WHo Bought What module.
The issue is that old orders' attributes are not an array, but the new ones are. Yep, life is interesting.
Comment #2
cayenne commentedAfter a mildly embarrassing foray into not reading the instructions, I have made a simple change that appears to address the problem. I'd make a patch, but my patches never seem to work.
Replace line 386 (
$option_rows[] = t('@attribute: @option', array('@attribute' => $attribute, '@option' => $option));)with the following code:Thus, if it's old code, it works as before, and if the order was placed under the new code, it's unparsed as an array with vertical bars between.
Comment #3
Rene Hostettler commentedThanks for the fix Cayenne worked for me. Was getting lots of not htmlentiy errors as well now all attribute names displaying correctly