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

Add Dedupe Rule allows user to save invalid (empty) RESERVED rule

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.8
    • Fix Version/s: 4.6.9
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      The 'Add Rule' form generally blocks the user from adding a rule if there are no 'fields' selected. HOWEVER, this form rule fails to catch an empty rule if the user checks 'Reserved'.

      This results in a rule which is empty / invalid AND currently can not be deleted.

      Fix the form validation so it prevents adding an 'empty' rule (reserved or not).

      NOTE: I don't think it makes sense to prevent users with 'administer CiviCRM' from deleting reserved rules. I'll file a separate issue for that.

      ---- Original Post ----
      I've tested the following steps on the CiviCRM Demo...

      ...I've mistakenly filled in +*no *+fields and that's the message I've got after I've used the rule.

      So, if I cannot delete or edit the rule, how can I solve the problem??

      After this mistake, I'm not able to add a new inidividual...

        Attachments

        1. cividemo_error.png
          241 kB
          Yvo Sedla
        2. cividemo_error1.png
          271 kB
          Yvo Sedla

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              yvose Yvo Sedla
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: