Changeset 1897 in ExiteCMS for trunk/administration/reports.php


Ignore:
Timestamp:
10/20/08 17:26:17 (4 years ago)
Author:
hverton
Message:

fixed not selecting the correct record in edit mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/reports.php

    r1620 r1897  
    6161// edit an existing report definition 
    6262if ($action == "edit" && !isset($variables['report'])) { 
    63     $result = dbquery("SELECT r.*, m.mod_folder FROM ".$db_prefix."reports r LEFT JOIN ".$db_prefix."modules m ON r.report_mod_id = m.mod_id"); 
     63    $result = dbquery("SELECT r.*, m.mod_folder FROM ".$db_prefix."reports r LEFT JOIN ".$db_prefix."modules m ON r.report_mod_id = m.mod_id WHERE report_id = $report_id"); 
    6464    if ($data = dbarray($result)) { 
    6565        // get the title for this report 
Note: See TracChangeset for help on using the changeset viewer.