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

when do_not_email (and other do_not_* fields) are included on profiles, the db value is set to NULL

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.3
    • Fix Version/s: 4.4.0
    • Component/s: Core CiviCRM
    • Labels:

      Description

      When you create a profile that includes the "do_not_email" field, that field is saved in the database with NULL rather than 0. This has implications elsewhere in the application - for instance, the AJAX that finds potential people to add to a Quick Email won't turn that person up. Someone else reported this bug here: http://forum.civicrm.org/index.php?topic=26507.0

      I've included a patch to fix this. The solution is to pass a default value of "0" for that checkbox when it's not selected, but I also had to add support for passing default values to HTML_QuickForm::Add. Since the underlying functions support setting the values, the rest takes care of itself.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              palantejon Jon K Goldberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: