[Vtigercrm-commits] [vtiger-commits] r9276 - /vtigercrm/trunk/modules/Users/DefaultDataPopulator.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Sep 5 08:15:35 EDT 2006
Author: saraj
Date: Tue Sep 5 06:15:31 2006
New Revision: 9276
Log:
Demo Data populated for Groups & Profile Desc added -- Ahmed
Modified:
vtigercrm/trunk/modules/Users/DefaultDataPopulator.php
Modified: vtigercrm/trunk/modules/Users/DefaultDataPopulator.php
==============================================================================
--- vtigercrm/trunk/modules/Users/DefaultDataPopulator.php (original)
+++ vtigercrm/trunk/modules/Users/DefaultDataPopulator.php Tue Sep 5 06:15:31 2006
@@ -44,6 +44,10 @@
$profile2_id = $this->db->getUniqueID("vtiger_profile");
$profile3_id = $this->db->getUniqueID("vtiger_profile");
$profile4_id = $this->db->getUniqueID("vtiger_profile");
+
+ $group1_id = $this->db->getUniqueID("vtiger_groups");
+ $group2_id = $this->db->getUniqueID("vtiger_groups");
+ $group3_id = $this->db->getUniqueID("vtiger_groups");
$this->db->query("insert into vtiger_role values('H".$role1_id."','Organisation','H".$role1_id."',0)");
$this->db->query("insert into vtiger_role values('H".$role2_id."','CEO','H".$role1_id."::H".$role2_id."',1)");
@@ -915,14 +919,30 @@
// Insert End
-
+
+ //Inserting into vtiger_groups table
+ $this->db->query("insert into vtiger_groups values ('".$group1_id."','Team Selling','Group Related to Sales')");
+ $this->db->query("insert into vtiger_group2role values ('".$group1_id."','H".$role4_id."')");
+ $this->db->query("insert into vtiger_group2rs values ('".$group1_id."','H".$role5_id."')");
+ $this->db->query("insert into vtiger_users2group values ('".$group1_id."',2)");
+
+ $this->db->query("insert into vtiger_groups values ('".$group2_id."','Marketing Group','Group Related to Marketing Activities')");
+ $this->db->query("insert into vtiger_group2role values ('".$group2_id."','H".$role2_id."')");
+ $this->db->query("insert into vtiger_group2rs values ('".$group2_id."','H".$role3_id."')");
+ $this->db->query("insert into vtiger_users2group values ('".$group2_id."',1)");
+ $this->db->query("insert into vtiger_users2group values ('".$group2_id."',2)");
+
+ $this->db->query("insert into vtiger_groups values ('".$group3_id."','Support Group','Group Related to providing Support to Customers')");
+ $this->db->query("insert into vtiger_group2role values ('".$group3_id."','H".$role3_id."')");
+ $this->db->query("insert into vtiger_group2rs values ('".$group3_id."','H".$role3_id."')");
+ $this->db->query("insert into vtiger_users2group values ('".$group3_id."',2)");
//New Security Start
//Inserting into vtiger_profile vtiger_table
- $this->db->query("insert into vtiger_profile values ('".$profile1_id."','Administrator',null)");
- $this->db->query("insert into vtiger_profile values ('".$profile2_id."','Sales Profile',null)");
- $this->db->query("insert into vtiger_profile values ('".$profile3_id."','Support Profile',null)");
- $this->db->query("insert into vtiger_profile values ('".$profile4_id."','Guest Profile',null)");
+ $this->db->query("insert into vtiger_profile values ('".$profile1_id."','Administrator','Admin Profile')");
+ $this->db->query("insert into vtiger_profile values ('".$profile2_id."','Sales Profile','Profile Related to Sales')");
+ $this->db->query("insert into vtiger_profile values ('".$profile3_id."','Support Profile','Profile Related to Support')");
+ $this->db->query("insert into vtiger_profile values ('".$profile4_id."','Guest Profile','Guest Profile for Test Users')");
//Inserting into vtiger_profile2gloabal permissions
$this->db->query("insert into vtiger_profile2globalpermissions values ('".$profile1_id."',1,0)");
More information about the vtigercrm-commits
mailing list