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

Html snippets generated for a given profile contains url error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.4, 4.0.4
    • Fix Version/s: 3.4.5, 4.0.5
    • Component/s: CiviCRM Profile
    • Labels:
      None

      Description

      Create a profile form to quick create a contact, in the profile list, choose HTML Snippet, the code generated contains a wrong url :

      /civicrm/profile/create&gid=...&reset=1

      used to validate the form, it should be :
      /civicrm/profile/create?gid=...&reset=1

      Attached patch affects the CRM/UF/Page/Group.php file and only replace & with the expected ?

      NB : if you introduce this snippet in a drupal block and you validate the form, it results in the following error :
      """
      The requested Profile (gid=2) is disabled, OR it is not configured to be used for 'Profile' listings in its Settings, or there is no Profile with that ID. Contact the site administrator if you need assistance.
      """
      Solution found in : http://forum.civicrm.org/index.php?topic=19663.0

        Attachments

          Activity

            People

            • Assignee:
              rajan Rajan P Mayekar
              Reporter:
              tonthon tonthon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 15 minutes
                15m
                Remaining:
                Remaining Estimate - 15 minutes
                15m
                Logged:
                Time Spent - Not Specified
                Not Specified