[Vtigercrm-commits] [Vtiger development] #7956: Help Desk - Ticket creation gives query failure
Vtiger development
vtiger-tickets at trac.vtiger.com
Mon Feb 17 08:44:35 GMT 2014
#7956: Help Desk - Ticket creation gives query failure
-----------------------+-----------------------
Reporter: apparao | Owner: developer
Type: defect | Status: new
Priority: blocker | Milestone: 6.0.0
Component: vtigercrm | Version: 6.0.0
Severity: Critical | Keywords:
-----------------------+-----------------------
array (
0 =>
array (
'file' =>
'/home/web/demo.vtiger.com/include/database/PearDatabase.php',
'line' => 365,
'function' => 'checkError',
),
1 =>
array (
'file' =>
'/home/web/demo.vtiger.com/modules/HelpDesk/HelpDeskHandler.php',
'line' => 22,
'function' => 'pquery',
),
2 =>
array (
'file' =>
'/home/web/demo.vtiger.com/include/events/VTEventTrigger.inc',
'line' => 143,
'function' => 'handleEvent',
),
3 =>
array (
'file' =>
'/home/web/demo.vtiger.com/include/events/VTEventsManager.inc',
'line' => 118,
'function' => 'trigger',
),
4 =>
array (
'file' => '/home/web/demo.vtiger.com/data/CRMEntity.php',
'line' => 792,
'function' => 'triggerEvent',
),
5 =>
array (
'file' =>
'/home/web/demo.vtiger.com/modules/Vtiger/models/Module.php',
'line' => 156,
'function' => 'save',
),
6 =>
array (
'file' =>
'/home/web/demo.vtiger.com/modules/Vtiger/models/Record.php',
'line' => 214,
'function' => 'saveRecord',
),
7 =>
array (
'file' => '/home/web/demo.vtiger.com/modules/Vtiger/actions/Save.php',
'line' => 45,
'function' => 'save',
),
8 =>
array (
'file' => '/home/web/demo.vtiger.com/modules/Vtiger/actions/Save.php',
'line' => 23,
'function' => 'saveRecord',
),
9 =>
array (
'file' => '/home/web/demo.vtiger.com/includes/main/WebUI.php',
'line' => 181,
'function' => 'process',
),
10 =>
array (
'file' => '/home/web/demo.vtiger.com/index.php',
'line' => 20,
'function' => 'process',
),
)
Query Failed:UPDATE vtiger_ticketcf SET from_portal=0 WHERE
ticketid=?::ADODB error Query Failed:UPDATE vtiger_ticketcf SET
from_portal=0 WHERE ticketid=?::->Unknown column 'from_portal' in 'field
list'
Vtiger6 ga and migrate from 540 to 6 also has the same issue.
{{{
Solution
========
$moduleInstance = Vtiger_Module::getInstance('HelpDesk');
$block = Vtiger_Block::getInstance('LBL_TICKET_INFORMATION',
$moduleInstance);
$field = new Vtiger_Field();
$field->name = 'from_portal';
$field->label = 'From Portal';
$field->table ='vtiger_ticketcf';
$field->column = 'from_portal';
$field->columntype = 'varchar(3)';
$field->typeofdata = 'C~O';
$field->uitype = 56;
$field->displaytype = 3;
$field->presence = 0;
$block->addField($field);
}}}
Please add the above code in migration script
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7956>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list