[Vtigercrm-commits] [vtiger-commits] r4201 - /vtigercrm/trunk/install/5createTables.inc.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Mar 15 09:50:06 EST 2006
Author: richie
Date: Wed Mar 15 07:50:01 2006
New Revision: 4201
Log:
query changed to state rolename instead of role in the select query
Modified:
vtigercrm/trunk/install/5createTables.inc.php
Modified: vtigercrm/trunk/install/5createTables.inc.php
==============================================================================
--- vtigercrm/trunk/install/5createTables.inc.php (original)
+++ vtigercrm/trunk/install/5createTables.inc.php Wed Mar 15 07:50:01 2006
@@ -190,7 +190,7 @@
}
// insert values into user2role table
- $role_query = "select roleid from role where name='administrator'";
+ $role_query = "select roleid from role where rolename='administrator'";
$db->database->SetFetchMode(ADODB_FETCH_ASSOC);
$role_result = $db->query($role_query);
$role_id = $db->query_result($role_result,0,"roleid");
@@ -285,7 +285,7 @@
//$sql_stmt1 = "insert into user2role values(1,1)";
//$db->query($sql_stmt1) or die($app_strings['ERR_CREATING_TABLE'].mysql_error());
-$role_query = "select roleid from role where name='standard_user'";
+$role_query = "select roleid from role where rolename='standard_user'";
$db->database->SetFetchMode(ADODB_FETCH_ASSOC);
$role_result = $db->query($role_query);
$role_id = $db->query_result($role_result,0,"roleid");
More information about the vtigercrm-commits
mailing list