Profile image used in image block gives errors

Bug #2004511 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
22.10
Fix Released
High
Unassigned
23.04
Fix Released
High
Unassigned

Bug Description

When I do the following:

1) add a profile image to a person's account
2) create a page
3) add an image block to the page and pick the profile image

See the following errors:

Undefined variable: isdecorative
Undefined variable: alttext
Undefined variable: altiscaption

Robert Lyon (robertl-9)
Changed in mahara:
milestone: none → 23.04.0
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/c/mahara/+/13682
Committed: https://git.mahara.org/mahara/mahara/commit/c54cd0299139307824ffaf2f864acb0f062b1373
Submitter: "Robert Lyon <email address hidden>"
Branch: main

commit c54cd0299139307824ffaf2f864acb0f062b1373
Author: Robert Lyon <email address hidden>
Date: Thu Feb 2 10:05:06 2023 +1300

Bug 2004511: Profile image in image block adjustments

As the profile image does not have 'isdecorative', 'alttext', and
'altiscaption' options we need to handle that when rendering the image

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

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

Patch for "22.10_DEV" branch: https://reviews.mahara.org/c/mahara/+/13702

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/c/mahara/+/13702
Committed: https://git.mahara.org/mahara/mahara/commit/1622457e9e1176f0c74aa66a0878a4274b1694c6
Submitter: "Robert Lyon <email address hidden>"
Branch: 22.10_DEV

commit 1622457e9e1176f0c74aa66a0878a4274b1694c6
Author: Robert Lyon <email address hidden>
Date: Thu Feb 2 10:05:06 2023 +1300

Bug 2004511: Profile image in image block adjustments

As the profile image does not have 'isdecorative', 'alttext', and
'altiscaption' options we need to handle that when rendering the image

Change-Id: Ifca8eeef80255de9b3099f43f8572417865b9f9a
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit c54cd0299139307824ffaf2f864acb0f062b1373)

Robert Lyon (robertl-9)
Changed in mahara:
milestone: 23.04.0 → none
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
no longer affects: mahara
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.