From 90d23b9b938ed8f3f328922b692887b1059abafb Mon Sep 17 00:00:00 2001
From: satish <satish.dvnk@vtiger.com>
Date: Wed, 22 Feb 2017 12:08:31 +0530
Subject: [PATCH] Fixes #410 - Create module using vtlib in all Profiles the
 "Create" option is disabled by default.

---
 vtlib/Vtiger/Profile.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vtlib/Vtiger/Profile.php b/vtlib/Vtiger/Profile.php
index 456bfd724..b0888d895 100644
--- a/vtlib/Vtiger/Profile.php
+++ b/vtlib/Vtiger/Profile.php
@@ -127,8 +127,7 @@ class Vtiger_Profile {
 		global $adb;
 
 		$actionids = Array();
-		$result = $adb->pquery("SELECT actionid from vtiger_actionmapping WHERE actionname IN 
-			(?,?,?,?,?)", array('Save','EditView','CreateView','Delete','index','DetailView'));
+		$result = $adb->pquery("SELECT actionid from vtiger_actionmapping WHERE actionname IN (?,?,?,?,?,?)", array('Save','EditView','CreateView','Delete','index','DetailView'));
 		/* 
 		 * NOTE: Other actionname (actionid >= 5) is considered as utility (tools) for a profile.
 		 * Gather all the actionid for associating to profile.
-- 
GitLab