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

The fields of the profile used as search default have to be public

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.3
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
      None

      Description

      I want to use a profile as default search result. This is clearly a feature for logged in users, however, the fields have to be made public to work.
      To be able to use a profile as the default search result, it needs to work for Admin and Users only fields

      I have hacked 3 files to make it work:

      templates/CRM/UF/Form/Field.tpl (line 155)

      UF/Form/Field.php (line 575)

      Contact/Selector.php (line 185)

      However, I don't know if the selector is used elsewhere than for the search result in profile, nor what security risk is there to add the Admin fields.

      Advice ? What is the right way of implementing that ?

      X+

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: