/[drupal]/contributions/modules/groups/patches/flexinode.patch
ViewVC logotype

Diff of /contributions/modules/groups/patches/flexinode.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Fri Apr 23 16:03:16 2004 UTC revision 1.2, Wed Nov 24 22:03:32 2004 UTC
# Line 12  Line 12 
12  @@ -177,7 +177,7 @@ function flexinode_page_table($ctype_id  @@ -177,7 +177,7 @@ function flexinode_page_table($ctype_id
13     }     }
14    
15     $type = "flexinode/" . check_query($ctype_id);     $type = "flexinode/" . db_escape_string($ctype_id);
16  -  $sql = "SELECT n.title, n.nid, ". implode(", ", $fields_to_select) ." FROM {node} n ". implode(" ", $table_joins) ." WHERE n.type = '$type' AND ". implode(" AND ", $where_clauses);  -  $sql = "SELECT n.title, n.nid, ". implode(", ", $fields_to_select) ." FROM {node} n ". implode(" ", $table_joins) ." WHERE n.type = '$type' AND ". implode(" AND ", $where_clauses);
17  +  $sql = "SELECT n.title, n.nid, ". implode(", ", $fields_to_select) ." FROM {node} n ". implode(" ", $table_joins) ." INNER JOIN {term_node} t ON n.nid = t.nid WHERE t.tid IN (". groups_get_terms() .") AND n.type = '$type' AND ". implode(" AND ", $where_clauses);  +  $sql = "SELECT n.title, n.nid, ". implode(", ", $fields_to_select) ." FROM {node} n ". implode(" ", $table_joins) ." INNER JOIN {term_node} t ON n.nid = t.nid WHERE t.tid IN (". groups_get_terms() .") AND n.type = '$type' AND ". implode(" AND ", $where_clauses);
18    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2