Hot answers tagged

3

Are you using the same payment processor naming for both? You must give it a unique name.


3

You cannot always predict the id or name for custom field for an activity, it is either custom_385_14(incase of saved custom field for activity where 14 is id from custom value table) or custom_385_-1 incase of new one. I always follow below snippet to work incase of custom field and it does call my change event when i change option from select dropdown. I ...


3

I found this on the github issue list: https://github.com/cividesk/com.cividesk.email.sparkpost/pull/58/commits/69a0bdb17bb520334da7f472a2d7670b44da8071 Applied the commit and it has resolved the problem.


3

You could do that with hook_civicrm_aclWhereClause: remove 'view all contacts', 'edit all contacts' for the case worker create an extension implementing hook_civicrm_aclWhereClause eg: function everyoneexcept_civicrm_aclWhereClause($type, &$tables, $whereTables, &$contactID, &$where) { if ($contactID == 'your_case_worker_id') { $...


2

Maybe, we could just add an extension with a simple call to freeze the form in a buildform hook. Something like - function example_civicrm_buildForm($formName, &$form) { $form->freeze(); } This will display all forms in CiviCRM as read-only. Note: We need to enable this ext before an upgrade and disable after the process is completed.


2

For the CiviContribute forms, you can choose Disable for each form from the Manage Contribution Pages screen (civicrm/admin/contribute?reset=1 on 4.6 LTS). The Disable option is under the More link. When maintenance is done, you can Enable each one in the same way. For something from the command line: There is an entity in the API called ContributionPage ...


1

No there is no way of putting CiviCRM in read only or maintance mode. However if you put Drupal in maintaince mode only administrators could login and access civicrm. All other users cannot do anything.


Only top voted, non community-wiki answers of a minimum length are eligible