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

Case Activity attachments sometimes do not display the paperclip icon

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6, 4.7
    • Fix Version/s: 4.7.14
    • Component/s: CiviCase
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      See https://issues.civicrm.org/jira/browse/CRM-10712 for the original implementation.

      A client recently ran into the problem where the paperclip icon for attachments wasn't showing up for some Case Activities.

      For some reason, $dao->attachment_ids sometimes returns duplicates of a file ID, which caused this to think there were multiple file attachments, and thus did not output the paperclip icon.

      Also noted that there is no behaviour for multiple attachments. Not even a counter as an indicator.

      We've written a small change for Case.php to do the following:

      1. Ensure the array of $attachmentIDs only includes unique IDs.
      2. For multiple attachments (>1), output the paperclip icon with a counter to indicate number of attachments on the Activity.

      PR on the way.

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              agileware Agileware
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: