This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* File: ./custom/clients/base/api/FakeLinkApi.php */ | |
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
class FakeLinkApi extends SugarApi { | |
public function registerApiRest() { | |
return array( | |
'filterRelatedRecords' => array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/* File: ./custom/modules/Users/clients/base/views/selection-list/selection-list.js */ | |
extendsFrom: 'SelectionListView', | |
initialize: function(options){ | |
this._super('initialize', [options]); | |
this.collection.orderBy = {'field':'full_name', 'direction':'asc'}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* File: ./custom/Extension/application/Ext/Language/en_us.news.lang.ext.php */ | |
$app_strings['LBL_DASHLET_NEWS_NAME'] = 'Google News'; | |
$app_strings['LBL_DASHLET_NEWS_DESC'] = 'Google News search results for the current Account record.'; | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/* File: ./custom/modules/Contacts/clients/base/views/create/create.js */ | |
extendsFrom:'CreateView', | |
initialize: function(options){ | |
this._super('initialize', [options]); | |
this.model.on('change:account_id', this.test, this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/* File: ./custom/modules/Notes/clients/base/views/create/create.js */ | |
extendsFrom: 'CreateView', | |
save: function(){ | |
this._super('save'); | |
//TODO: Add logic to check if parent model exists to verify if being created via subpanel or other means. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* File: ./custom/Extension/modules/Trackers/Ext/Vardefs/idx_user_del_vis.ext.php */ | |
$dictionary['Tracker']['indices'][] = array ( | |
'name' => 'idx_tracker_userid_del_vis', | |
'type' => 'index', | |
'fields' => | |
array ( | |
0 => 'user_id', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* File: ./custom/include/Expressions/Expression/String/GetYTDValueExpression.php */ | |
require_once('include/Expressions/Expression/String/StringExpression.php'); | |
class GetYTDValueExpression extends StringExpression | |
{ | |
function evaluate() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* This example sets the Status Description field to required | |
if the Status field is set to 'Dead' within Leads module. | |
File: ./custom/Extension/modules/Leads/Ext/Dependencies/set_required.ext.php */ | |
$dependencies['Leads']['req_status_desc_dep'] = array( | |
'hooks' => array("edit"), | |
'trigger' => 'true', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* File: ./custom/Extension/modules/Opportunities/Ext/Dependencies/hide_panel.ext.php */ | |
$dependencies['Opportunities']['hide_panel'] = array( | |
'hooks' => array("edit"), | |
'trigger' => 'equal($sales_stage, "Closed Lost")', | |
'triggerFields' => array('sales_stage'), | |
'onload' => true, | |
'actions' => array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* File: ./custom/modules/Accounts/clients/base/api/CustomFilterApi.php */ | |
require_once 'clients/base/api/FilterApi.php'; | |
class CustomFilterApi extends FilterApi | |
{ | |
public function registerApiRest() | |
{ |