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

Number for "Add contacts to group" doesn't match "Number of selected contacts"

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.2
    • Fix Version/s: 3.4.4
    • Component/s: CiviCRM Search
    • Labels:
      None

      Description

      If you do an advanced search for contacts using custom fields AND the Default language is not English (USA, Australian, etc.) but any other language, the number shown for "Number of selected contacts" does not match the selected contacts from the previous screen. In stead ALL available contacts are selected.

      To replicate:
      1. Create a custom data set called "Ekstra Information" and a custom field "Gift Subscription" (Yes/No)
      2. Select three random contacts and set "Gift Subscription" to "Yes"
      3. Change the default language to Danish: "Settings - Localization" -> "Default language": Danish
      4. Click "Avanceret Søgning" (Advanced Search)
      5. Under "Tilrettet felter" (Custom Fields) -> "Ekstra Information", set "Gift Subscription" to "Ja" (Yes) and click "Søgning" (Search)
      6. Select "Records: x All 3 records" and "Print PDF-brev til kontakter", then click "Gå"

      Result: "Number of selected contacts: 107" but it should have been 3...

      Now repeat the above, but in step number 6, click and expand BOTH the "Edit Search Criteria" tab and "Tilrettet felter" (Custom Fields) -> "Ekstra Information" so that "Gift Subscription" x "Ja" is visible.

      The result will now be the correct: "Number of selected contacts: 3"

      I tried with "English (Australia)" and it worked as expected, but not for "Dutch" so it probably works for all the English languages, but not for any other language.

      In step 6 the custom tab "Tilrettet felter" (Custom Fields) is already expanded, when you click and expand the "Edit Search Criteria" with language set to English, but it is not expanded when language is set to Danish. But if you then click the "Tilrettet felter" tab, the little "loading" wheel pops up, and the search settings are loaded. I have attached two images to show the different behaviour between the two languages, after clicking "Edit Search Criteria".

      Donald Lobo: "The relevant code should be at: CRM/Contact/Form/Search/Advanced.php, search for 'pane' (the 'open' parameter controls whether it is opened by default etc)"

      From this forum post: http://forum.civicrm.org/index.php/topic,18245.0.html

      This issue might be related: http://issues.civicrm.org/jira/browse/CRM-5992

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              resga resga
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: