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

contrib pages trigger "unsaved changes" warning automatically

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.8
    • Fix Version/s: 4.7
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      contribution pages (and likely event registrations) are triggering the "unsaved changes" warning even when no changes have been made. you can easily test with the demo site. visit: http://d46.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=2 – then either reload the page or try to navigate away.

      the issue is caused by the billingcheckbox field, which is present if the top profile has address fields and the form has payment processing enabled. the initial value for that field is false. I think that as the page loads it's determined if sufficient fields are present to be able to use that option, in which case it is defaulted to true. that change triggers the unsaved warning.

        Attachments

          Activity

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: