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

Headers missing in search results using Search Views profile (under specific circumstances)

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.7.30, 4.7.31
    • Fix Version/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No
    • How it works currently:
      Hide
      Reproducible on dmaster:

      1. Create a profile "used for" "Search Views"; add several fields to this profile, e.g., First Name, Last Name, Email (I'm unsure if this particular set of fields is relevant)
      2. Navigate to Search > Advanced Search (it's not believe that the criteria are relevant; e.g., don't bother defining any criteria).
      3. In the "Views For Display Contacts" field, selecting a profile other than '- default view -'.
      4. Click "Search" to perform the search.
      5. Observe search results with correct column headers.
      6. Expand the "Edit Search Criteria" accordion. (It's unclear whether changing or not changing is required here). In the "Views For Display Contacts" field, selecting '- default view -'.
      7. Click "Search" to perform the search.
      8. Observe search results with correct column headers.
      9. Expand the "Edit Search Criteria" accordion. Make no changes at all to any field.
      10. Click "Search" to perform the search.
      11. Observe that in the search results, only the "Name" column has a header; other columns are without headers, and there are two "Action" column headers, neither of which have correct alignment with the "Action" column itself.
      Show
      Reproducible on dmaster: 1. Create a profile "used for" "Search Views"; add several fields to this profile, e.g., First Name, Last Name, Email (I'm unsure if this particular set of fields is relevant) 2. Navigate to Search > Advanced Search (it's not believe that the criteria are relevant; e.g., don't bother defining any criteria). 3. In the "Views For Display Contacts" field, selecting a profile other than '- default view -'. 4. Click "Search" to perform the search. 5. Observe search results with correct column headers. 6. Expand the "Edit Search Criteria" accordion. (It's unclear whether changing or not changing is required here). In the "Views For Display Contacts" field, selecting '- default view -'. 7. Click "Search" to perform the search. 8. Observe search results with correct column headers. 9. Expand the "Edit Search Criteria" accordion. Make no changes at all to any field. 10. Click "Search" to perform the search. 11. Observe that in the search results, only the "Name" column has a header; other columns are without headers, and there are two "Action" column headers, neither of which have correct alignment with the "Action" column itself.
    • How it should work:
      Column headers should always appear and be properly aligned over the appropriate column.

      Description

      When performing an Advanced Search and selecting a profile in the "Views For Display Contacts" field, re-submitting the search criteria can cause column headers to go missing in search results, as shown in this screenshot:


        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              allenshaw Allen Shaw
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: