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

Buttons in pop-up alerts do not work

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.9, 4.5
    • Fix Version/s: 4.6
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      When using inline editing with multiple users, attempting to save an edit on a contact which has changed since editing was started will result in an alert. That alert used to have a pop-up style in 4.4, but is inline with 4.5.

      In 4.4, the buttons in that alert ("Save Anyway" and "Reload Page") do not work because the click event handlers are removed as the alert HTML is passed to the jquery.ui notify plugin. In Common.js, messagesFromMarkup() is called after oncrmFormLoad is triggered. That function passes the inner HTML of the alert box to CRM.alert(), which in turn calls the notify plugin. Since only the actual object is not passed, the click handlers are dropped.

      In 4.5, messagesFromMarkup() is no longer hooked to oncrmFormLoad, so the alert is left inline, though the buttons still work.

        Attachments

          Activity

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              s.bink Steve Binkowski
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: