update function is misnamed
highvoltage - January 10, 2009 - 03:42
| Project: | Affiliates |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
There's no instruction in use, the UI contains nothing but two text Boxes with no means or instructions as to generating an affiliate link, and on top of that I recieve this error on the affiliate homepage on a new install of drupal:
user warning: Unknown column 'ac.weight' in 'order clause' query: SELECT aa.*, ac.cat_name FROM affiliates_ads aa INNER JOIN affiliates_cats ac ON ac.cat_id = aa.cat_id WHERE status = 'A' ORDER BY ac.weight ASC, aa.order_by ASC in C:\Documents and Settings\Owner\My Documents\site\modules\affiliates\affiliates.module on line 937.

#1
There is an update in the .install file but the function has been named incorrectly; it should be affiliates_update_6001() instead of affiliates_update_1(). Fixing this and then running the update.php adds a "weight" column to the affliates_cats table and the errors are gone.
#2
Thanks, fixed in dev. New tarball should be available for download in about 9 hours from now.
#3
Automatically closed -- issue fixed for two weeks with no activity.