Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-17843

'View only' custom field cannot be updated by hook_pre

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.6.11, 4.7
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      Developer Doc
    • Funding Source:
      Needs Funding

      Description

      This may just be a clarification required, but when you create a custom field there is an option for:
      View Only? Is this field set by PHP code (via a custom hook). This field will not be updated by CiviCRM.

      It should be noted that if this is enabled, the fields cannot be updated by changing or adding the value in hook_civicrm_pre.

      The wording of the help text suggests this would be possible. It may be better to say '...field is set by the API only' ?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                john John K.
                Reporter:
                john John K.
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: