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
({ | |
/* Author: Angel Magaña -- [email protected] | |
* File: ./custom/clients/base/layouts/subpanels/subpanels.js | |
* | |
* Extended subpanels layout controller for hiding | |
* subpanels without data upon parent record load (Sugar 7.2+) | |
* | |
* This customization applies to all modules | |
*/ |
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 | |
/* Author: Angel Magaña - [email protected] | |
* File: <sugar_root>/es_test.php | |
* | |
* Executes simple Elasticsearch query using | |
* Elasticsearch params from Sugar config files | |
* Usage: http://<sugar_url>/es_test.php?term=<your_search_term> | |
* | |
*/ |
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
({ | |
/* Author: Angel Magaña -- [email protected] | |
* File: ./custom/clients/base/views/subpanel-list/subpanel-list.js | |
* | |
* Extended Subpanel List controller to suppress "Edit" functionality | |
* on "Calls" subpanel throughout Sugar (Sugar 7.2+) | |
* | |
*/ | |
extendsFrom: 'SubpanelListView', |
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
({ | |
/* Author: Angel Magaña -- [email protected] | |
* File: ./custom/modules/Contacts/clients/base/views/record/record.js | |
* | |
* Extended RecordView controller for applying custom | |
* RecordView metadata at initialize time (Sugar 7.2+) | |
* | |
*/ | |
extendsFrom: 'RecordView', |
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
/* Author: Angel Magaña - [email protected] | |
* | |
* This Gist can be used within a Sugar 7 Controller to retrieve a user's | |
* security Roles | |
* | |
*/ | |
/* To retrieve the Roles, we create a User object then | |
* retrieve the User's related Role records via the default Users <--> Roles relationship | |
*/ |
NewerOlder