[Vtigercrm-commits] [vtiger-commits] r7343 - /vtigercrm/trunk/modules/Reports/ChangeFolder.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 06:08:59 EDT 2006


Author: saraj
Date: Wed Jun 21 04:08:56 2006
New Revision: 7343

Log:
docs added and query error has been fixed

Modified:
    vtigercrm/trunk/modules/Reports/ChangeFolder.php

Modified: vtigercrm/trunk/modules/Reports/ChangeFolder.php
==============================================================================
--- vtigercrm/trunk/modules/Reports/ChangeFolder.php (original)
+++ vtigercrm/trunk/modules/Reports/ChangeFolder.php Wed Jun 21 04:08:56 2006
@@ -29,10 +29,16 @@
 	header("Location: index.php?action=ReportsAjax&file=ListView&mode=ajaxdelete&module=Reports");
 }
 
+
+/** To Change the Report to another folder
+  * @param $reportid -- The report id
+  * @param $folderid -- The folderid the which the report to be moved
+  * @returns nothing 
+ */
 function ChangeFolder($reportid,$folderid)
 {
 	global $adb;
-	$imovereportsql = "update vtiger_report set folderid=".$folderid." where vtiger_reportid=".$reportid;
+	$imovereportsql = "update vtiger_report set folderid=".$folderid." where reportid=".$reportid;
 	$imovereportsqlresult = $adb->query($imovereportsql);
 }
 ?>





More information about the vtigercrm-commits mailing list