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

Joomla auto-save of features fails due to missing JavaScript file

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.7.22
    • Fix Version/s: None
    • Component/s: Joomla Integration
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      On most Joomla permissions config pages (e.g., /administrator/index.php?option=com_config&view=component&component=com_cache), changing the value of a permission will cause the permission setting to be saved immediately, as shown by a green check-box next to the field (depending on the theme, I guess), and as shown by reloading the page and observing the changed field value.

      On CiviCRM Configuration "Permissions" tab (/administrator/index.php?option=com_config&view=component&component=com_civicrm) changing the value of a permission field triggers a JavaScript error: 

      Uncaught ReferenceError: sendPermissions is not defined

      This is caused by the absence of the js file system/js/permissions.js, due to what I think is incorrect use of JHtml::_(). I'll post a PR that fixes this momentarily, but it would be good if someone more experienced with Joomla could review it.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              allenshaw Allen Shaw
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: