Hi
I am trying to defualt the assigned to field in a create new case to blank, so that user is forced to enter the asigned to field and not just accept the default name.
Hi
I am trying to defualt the assigned to field in a create new case to blank, so that user is forced to enter the asigned to field and not just accept the default name.
You would have to make some custom code changes ... you may be better served training your users ...
Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11 MySQL 5.0.32
SalesAgility.com - SugarCRM Experts (UK)
Authors of Advanced OpenSales - Open Source Quotations, Invoices, Products and Contracts modules for SugarCRM Community Edition - Download here
You need to create a custom view.edit.php to specify a new EditView class, which extends the default EditView2.php and implement into that the function
CheersPHP Code:function createFocus(){
global $beanList, $beanFiles;
if(empty($beanList[$this->module]))return;
if(!$this->focus ){
$bean = $beanList[$this->module];
require_once($beanFiles[$bean]);
$obj = new $bean();
$this->focus = $obj;
}
//If there is no idea, assume we are creating a new instance
//and call the fill_in_additional_detail_fields where initialization
//code has been moved to
if(empty($this->focus->id)) {
$this->focus->fill_in_additional_detail_fields();
$this->focus->assigned_user_id = '';
}
}
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Hi Andopes
Can I ask you to detail that a little bit? I am trying to default the assigned user in the bug_tracker to our IT person. That way, he will allways be automatically notified when a new bug is reported.
Where do I create that file?
Whate else should be on that file?
I tried to create the view.edit.php file in \custom\modules\bugs\views and place only the code you provided, but when I went to create a bug the page was blank.
then I added the contents of the view.edit.php file in \modules\bugs\views and put it all together, but that left all the same as in the beggining.
so where do I go now? How to I default the assigned_to field to the specific user I want?
Thank you
Mário
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks