[Vtigercrm-commits] [vtiger-commits] r9505 - /vtigercrm/trunk/modules/Users/DefaultDataPopulator.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Sep 13 10:35:55 EDT 2006
Author: richie
Date: Wed Sep 13 08:35:48 2006
New Revision: 9505
Log:
Fixed the default group population issue --by Don
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 Wed Sep 13 08:35:48 2006
@@ -44,10 +44,6 @@
$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)");
@@ -920,21 +916,21 @@
// Insert End
//Inserting into vtiger_groups table
+ $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_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
More information about the vtigercrm-commits
mailing list