In the left hand sidepanel each module has a form to do a quick create
How can I get rid of these?
I can modify them by using sidecreateviewdefs.php but I want to remove all of them
In the left hand sidepanel each module has a form to do a quick create
How can I get rid of these?
I can modify them by using sidecreateviewdefs.php but I want to remove all of them
Hi, Mike.
The script which display the left side quick create form is the modules/ModuleName/Forms.php
By the way, you are right closed to become a Prolific Poster.
Cheers
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.
Thanks Andre - my problem is that I cant work out what to put in Forms.php to get rid of the side formOriginally Posted by andopes
I tried creating a blank function get_new_record_form but that just give me the error message Fatal error: Cannot redeclare get_new_record_form() (previously declared in /srv/www/ivycrm_dev/include/EditView/SideQuickCreate.php:58) in /srv/www/ivycrm_dev/modules/Cases/Forms.php on line 41
I managed to get rid of all side forms by editing /include/EditView/SideQuickCreate.php but I'd prefer a more suble solution
Yup getting there as a prolific poster - probably down to the fact I sometimes post before I think![]()
This is frustrating
in include/MVC/View/SugarView.php there is the following code
function displayHeader(){
global $currentModule;
$GLOBALS['app']->headerDisplayed = true;
if(!function_exists('get_new_record_form') && file_exists('modules/' . $this->module .'/metadata/sidecreateviewdefs.php')){
require_once('include/EditView/SideQuickCreate.php');
}
This calls include/EditView/SideQuickCreate.php' if the function get_new_record_form does not exist
My problem is this gets called before Forms.php so I can't redefine the function in Forms.php
if I comment out the if statement then I can call require_once('include/EditView/SideQuickCreate.php'); from each Modules Forms.php but there must be a better way of doing this
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks