- tested with vagrant box: sugarcrm/php80es716
zend_extension=xdebug.so
xdebug.mode=debug
xdebug.start_with_request=yes
#your host ip Not the vagrant ip address
| // Example to extends the custom create view instead of the base create view | |
| // Path : custom/modules/<module>/clients/base/views/create-nodupecheck/create-nodupecheck.js | |
| ({ | |
| // syntax to custom views: <module>CustomCreateView | |
| // syntax to base views: CreateView | |
| extendsFrom: 'ContactsCustomCreateView', | |
| initialize: function(options) { | |
| this._super("initialize", [options]); | |
| this.enableDuplicateCheck = false; |
| <?php | |
| // Documentation.- http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.7/Architecture/Sugar_Logic/Dependency_Actions/ | |
| $dependencies['Meetings']['readonly_fields'] = array( | |
| 'hooks' => array("edit"), // values : "edit", "view", "save" and "all" | |
| 'trigger' => 'equal($status,"Held")', //Optional, the trigger for the dependency. Defaults to 'true'. | |
| 'triggerFields' => array('status'), // The list of fields to watch for change events. When changed, the trigger expressions will be recalculated. | |
| 'onload' => true, // Whether or not to trigger the dependencies when the page is loaded. | |
| //Actions is a list of actions to fire when the trigger is true | |
| // You could list multiple fields here each in their own array under 'actions' | |
| 'actions' => array( |
| <?php | |
| require_once ('modules/ModuleBuilder/MB/ModuleBuilder.php') ; | |
| require_once('modules/ModuleBuilder/parsers/parser.dropdown.php'); | |
| function post_install() | |
| { | |
| global $app_list_strings, $current_language; | |
| // dropdown list definition | |
| $dropdownLists = array ( | |
| array ( | |
| "name" => "listName", |
| // esta funcion se ejecuta mediante un paquete | |
| function post_install() | |
| { | |
| global $db; | |
| $query = "ALTER TABLE table_name MODIFY COLUMN table_column int(11) auto_increment NOT NULL, ADD KEY(table_column);"; | |
| $res = $db->query($query); | |
| echo "---- Terminando ----"; | |
| } |