Closed (fixed)
Project:
Media Mover
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Sep 2009 at 12:23 UTC
Updated:
18 Oct 2009 at 23:00 UTC
When setting MM for harvesting files from CCK fields the database table prefix was not prepended correctly by function mm_cck_harvest() in media_mover/mm_cck/mm_cck.module file.
There's is an error on line 179 in the sql query.
error line: LEFT JOIN '. $db_info['table'] .' c ON c.'. $db_info['columns']['fid']['column'] .' = f.fid
fixed line: LEFT JOIN {'. $db_info['table'] .'} c ON c.'. $db_info['columns']['fid']['column'] .' = f.fid
Because of missing parentheses table name would not get prefixed correcly by function db_prefix_tables($sql).
Took me couple of hours to trace this bug down.
Cheers everyone
Comments
Comment #1
arthurf commentedThis one is fixed in the dev version of 6.1x - can you give that a try and see if it is working for you? Thanks for the bug report
Comment #2
Nala Zoch commentedHave tested the latest development snapshot and seems to be working fine :)
Comment #3
arthurf commentedFixed in Beta3 http://drupal.org/node/595886