[Vtigercrm-commits] [vtiger-commits] r6434 - /vtigercrm/trunk/install/populateSeedData.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu May 25 15:08:39 EDT 2006
Author: saraj
Date: Thu May 25 13:08:35 2006
New Revision: 6434
Log:
Demo Data in Notes List view made proper - ahmed
Modified:
vtigercrm/trunk/install/populateSeedData.php
Modified: vtigercrm/trunk/install/populateSeedData.php
==============================================================================
--- vtigercrm/trunk/install/populateSeedData.php (original)
+++ vtigercrm/trunk/install/populateSeedData.php Thu May 25 13:08:35 2006
@@ -763,10 +763,9 @@
//Populate Notes Data
-$notes_array = array ("Cont_Notes", "Prod_Notes", "PB_Notes", "Vendor_Notes", "Invoice_Notes", "Task_Notes", "Event_Notes", "Email_Notes", "Rss_Notes", "Qt_Notes", "Notes_Customer", "Notes_PO");
-$att_array = array ("cont.doc", "prod.txt", "pb.doc", "vendor.xls", "invoice.xls", "task.doc", "ev.xls", "em.txt", "rss.txt", "qt.txt", "cust.doc", "PO.doc");
-
-for($i=0;$i<12;$i++)
+$notes_array = array ("Cont_Notes", "Prod_Notes", "Vendor_Notes", "Invoice_Notes", "Task_Notes", "Event_Notes", "Email_Notes");
+
+for($i=0;$i<7;$i++)
{
$notes = new Note();
@@ -774,11 +773,14 @@
$contact_key = array_rand($contact_ids);
$notes->column_fields["contact_id"] = $contact_ids[$contact_key];
$notes->column_fields["title"] = $notes_array[$i];
- $notes->column_fields["filename"] = $att_array[$i];
$notes->save("Notes");
$notes_ids[] = $notes ->id;
+ $product_key = array_rand($product_ids);
+ $query = "insert into senotesrel (crmid, notesid) values (".$product_ids[$product_key].", ".$notes->id.")";
+ $db->query($query);
+
}
More information about the vtigercrm-commits
mailing list