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

The edit in place feature, and calling the API from Javascript, is not working in some hosting configurations

    Details

    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      These features ae not working when CiviCRM websites are hosted:

      • without pretty URL's enabled (ie. domain.org/index.php?q=civicrm/xxx rather than domain.org/civicrm/xxx)
      • or in a subdirectory (ie. domain.org/chapter/civicrm, localhost/vhost/civicrm, etc.) the edit in place feature, and cj().crmAPI()

      This is because callbacks are hardcoded to /civicrm/xxx, rather than being calculated through the crmURL function.

      To reproduce: setup a civiCRM vhost that is reached via a subdirectory structure on the URL, go to the Administer / Administer data and Screens / Profiles and try doing an edit in place on the name of one of the profiles in the list.

      This has been fixed in 4.3, so we probably need a backport of some of these changes to 4.2.

        Attachments

          Activity

            People

            • Assignee:
              nganivet Nicolas Ganivet
              Reporter:
              nganivet Nicolas Ganivet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified