sugarcrm

Sugarcrm 8 XSRF

流过昼夜 提交于 2019-12-02 05:29:39
问题 I've backup of ondemand instance for sugarcrm version 8.0.0 Enterprise Edition It works normal for CRUD records and other stuff, but when I try to upload module via Zip it gives me following error Cross Site Request Forgery (XSRF) Attack Detected Form authentication failure (Administration -> UpgradeWizard). Contact your administrator. I've tried following article Troubleshooting Cross-Site Forgery Messages But the problem still persists. The problem only occurs for BWC modules IMO. 回答1: EDIT

How to change default sort in custom subpanel - sugarcrm?

老子叫甜甜 提交于 2019-12-01 23:05:58
I want to put default sort by "Date Created" in custompanel. can you please guide me, how can I make it "Date Created" as default sort? Please help me. Sherlock In your layout_defs change the sort_by to the desired column : <?php $layout_defs['ModuleName']['subpanel_setup']['Subpanelname'] = array( 'order' => 50, 'sort_order' => 'desc', 'sort_by' => 'date_entered', ); ?> In this example, the default column used for sorting is date_entered 来源: https://stackoverflow.com/questions/30610322/how-to-change-default-sort-in-custom-subpanel-sugarcrm

Sugarcrm 8 XSRF

北城以北 提交于 2019-12-01 22:46:20
I've backup of ondemand instance for sugarcrm version 8.0.0 Enterprise Edition It works normal for CRUD records and other stuff, but when I try to upload module via Zip it gives me following error Cross Site Request Forgery (XSRF) Attack Detected Form authentication failure (Administration -> UpgradeWizard). Contact your administrator. I've tried following article Troubleshooting Cross-Site Forgery Messages But the problem still persists. The problem only occurs for BWC modules IMO. EDIT: Before trying this work-around, check if you have the HTTP referer header disabled in your web browser, as

php file automatically renamed to php.suspected

独自空忆成欢 提交于 2019-11-30 08:01:57
问题 Since last 4 days, we are facing strange issue on our Production server (AWS EC2 instance) specific to only one site which is SugarCRM. Issue is /home/site_folder/public_html/include/MassUpdate.php file is renamed automatically to /home/site_folder/public_html/include/MassUpdate.php.suspected This happens 2-3 times in a day with 3-4 hours of gap. This issue occurs only in case of specific site, even it doesn't occur for staging replica of the same site. I even checked code of that file from

prevent duplicate value using ajax in sugar crm

江枫思渺然 提交于 2019-11-30 07:17:35
问题 i have create module using module builder , now i am having a field called as book Name now if i give same book name 2 time t is accepting . i don't want to use and plug in for checking duplicate value because i want to learn the customization through code . so i can call ajax and check in data base weather the same book name is exist in db or not but i don't know how controller works in sugar crm . and how to call ajax in sugar crm . can any one guide me , your help is much appreciated . 回答1

Adding panels to editviewdefs.php via manifest file

蓝咒 提交于 2019-11-29 12:49:29
In SugarCRM installable changes in detailview the question was asked about how to add a panel, using the Module Installer's manifest file to add to the the editview/detailview of an existing module without wiping out customizations previously made in the custom directory. The answer was provided how to add fields, but not panels. I know you could use a post_execute function called from the manifest file to edit the editviewdefs.php and detailviewdefs.php files in the /custom/modules//metadata/ directory, but that involves making some guesses about what already exists in those files. Does

How I can customize query in view.popup in SugarCRM

◇◆丶佛笑我妖孽 提交于 2019-11-29 10:31:42
I am are using SugarCRM 6.7, I wanna customize the listview query in popup. I need a custom query when I open the Accounts popup in Cases module. I was created a file in \custom\modules\Accounts\views\view.popup.php if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); class CustomViewPopup extends ViewPopup{ function CustomViewPopup(){ parent::ViewPopup(); } } But I need change the initial query, I tried to use $this->where = "whereCondition" equal in view.list.php but with no success. How I can, change the initial query in view.popup? Thank you This is a way to customize

php file automatically renamed to php.suspected

房东的猫 提交于 2019-11-29 06:01:39
Since last 4 days, we are facing strange issue on our Production server (AWS EC2 instance) specific to only one site which is SugarCRM. Issue is /home/site_folder/public_html/include/MassUpdate.php file is renamed automatically to /home/site_folder/public_html/include/MassUpdate.php.suspected This happens 2-3 times in a day with 3-4 hours of gap. This issue occurs only in case of specific site, even it doesn't occur for staging replica of the same site. I even checked code of that file from both sites, it's same. We have Googled and found, such issue occurs mostly for Wordpress sites and it

Where is SugarFullTest_Version2.php? (Sugar CRM and SOAP)

荒凉一梦 提交于 2019-11-28 14:17:44
In regards to using SOAP to connect to Sugar CRM, the documentation for Sugar 6.1 Community Edition states: "See /examples/SugarFullTest_Version2.php for more examples on usage." source: http://developers.sugarcrm.com/docs/OS/6.1/-docs-Developer_Guides-Sugar_Developer_Guide_6.1.0-Chapter%202%20Application%20Framework.html#9000244 This file is not in the examples folder. Where is it? If this file does not exist, where can I find a working example of connecting to Sugar CRM with SOAP? None of the test scripts in the /examples/ folder work. Couldn't find the file either, so made an example (PHP

How I can customize query in view.popup in SugarCRM

白昼怎懂夜的黑 提交于 2019-11-28 03:39:05
问题 I am are using SugarCRM 6.7, I wanna customize the listview query in popup. I need a custom query when I open the Accounts popup in Cases module. I was created a file in \custom\modules\Accounts\views\view.popup.php if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); class CustomViewPopup extends ViewPopup{ function CustomViewPopup(){ parent::ViewPopup(); } } But I need change the initial query, I tried to use $this->where = "whereCondition" equal in view.list.php but