Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-19551: Display paperclip icon for one or more unique Activity att… #9306

Closed
wants to merge 1 commit into from

Conversation

agileware
Copy link
Contributor

…achments. Include counter as indicator if multiple.


…achments. Include counter as indicator if multiple.

----------------------------------------
* CRM-19551: Case Activity attachments sometimes do not display the paperclip icon
  https://issues.civicrm.org/jira/browse/CRM-19551
@monishdeb
Copy link
Member

monishdeb commented Oct 21, 2016

Changes look good. After applying the patch I see
image

However there is a issue in case of no_attachment == 1 as it need the same treatment like multiple , because when I click the papericon, it throw error as

image

@agileware can you bring this change at L1202 !! (also in backport PR)

-            "reset=1&eid=" . $caseActivityId . "&id=" . $dao->attachment_ids,
+            "reset=1&eid=" . $caseActivityId . "&id=" . $attachmentIDs[0],

@colemanw
Copy link
Member

You know we could just foreach the list of attachments and show a paperclip link for each one. That might actually be the most useful thing.

@colemanw
Copy link
Member

Here's an alternate PR which reuses an existing util for displaying attachment icons (this file reinvents a lot of wheels): #9330

@colemanw colemanw closed this Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants