Download & Extend

Tasklist Advanced doesn't properly install when prefixed tables are used.

Project:Tasklist Advanced
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

In .install file there is:

  // let's make sure that there's an entry in {tasks_advanced} for each existing entry in {tasks}
  // need to make sure all parents are turned into projects
  db_query("INSERT INTO {tasks_advanced} (nid, taskcategory, tasktype)
            SELECT t.nid, 'unknown', IF(t.nid IN (SELECT parent FROM tasks), 'project', 'action')
            FROM {tasks} t
            LEFT JOIN {tasks_advanced} a ON t.nid = a.nid
            WHERE ISNULL(a.nid)");

there should be:

  // let's make sure that there's an entry in {tasks_advanced} for each existing entry in {tasks}
  // need to make sure all parents are turned into projects
  db_query("INSERT INTO {tasks_advanced} (nid, taskcategory, tasktype)
            SELECT t.nid, 'unknown', IF(t.nid IN (SELECT parent FROM {tasks}), 'project', 'action')
            FROM {tasks} t
            LEFT JOIN {tasks_advanced} a ON t.nid = a.nid
            WHERE ISNULL(a.nid)");

Comments

#1

Status:active» fixed

Thanks. Fixed in CVS for both Drupal 4.7 and Drupal 5.

#2

Status:fixed» closed (fixed)