Resume attachment can't be downloaded

Bug #1928908 reported by Tim Lock
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Unassigned

Bug Description

Using 20.10 or 21.04, when you setup a resume with attachments, the attachment name is listed correctly, but the download link show the error:

MAHARAURL/artefact/file/download.php?file=undefined

A required parameter is missing or malformed

The 'file' parameter is not an integer

This is fixed by:

htdocs/artefact/resume/lib.php:

- var href = self.config.wwwroot + 'artefact/file/download.php?file=' + attachments[i].id;
+ var href = self.config.wwwroot + 'artefact/file/download.php?file=' + attachments[i].attachment;

Regards,
Tim

Revision history for this message
Tim Lock (timlock) wrote :
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11793

Revision history for this message
Robert Lyon (robertl-9) wrote :

Hi Tim,

Thank you for spotting this issue and supplying a fix.

In reviewing it I noticed a few more problems nearby, namely the icon not showing and screen reader text being squashed up, so fixed them as part of this fix

Revision history for this message
Robert Lyon (robertl-9) wrote :
Revision history for this message
Tim Lock (timlock) wrote :

Thanks Robert.

Changed in mahara:
status: New → In Progress
importance: Undecided → Medium
milestone: none → 21.10.0
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11793
Committed: https://git.mahara.org/mahara/mahara/commit/b6880747120d2a2d9c5e9bc54dae98d1d78986c5
Submitter: Gold (<email address hidden>)
Branch: master

commit b6880747120d2a2d9c5e9bc54dae98d1d78986c5
Author: Robert Lyon <email address hidden>
Date: Wed May 19 21:15:06 2021 +1200

Bug 1928908: Resume attachments not styled correctly in resume section

Also the download link is not working

They need to look more like how they render in the single resume block

Change-Id: I3cd210a2fc25392764895ec8ea7e1df629f3af60
Signed-off-by: Robert Lyon <email address hidden>

tags: added: manualupdate
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.