Reviewed:  https://reviews.mahara.org/12337
Committed: 
https://git.mahara.org/mahara/mahara/commit/7adcfbfd01ea0ba0c4792563c94df95492c8e7f2
Submitter: Robert Lyon ([email protected])
Branch:    21.04_DEV

commit 7adcfbfd01ea0ba0c4792563c94df95492c8e7f2
Author: ScottVerbeek <[email protected]>
Date:   Fri Dec 3 15:13:25 2021 +1100

Upgrade bug 1953086: Add text parameter to img src

behatnotneeded

Change-Id: I8fbce33853212ad24022a5e57a835ac4f9854472

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1953086

Title:
  Images in migrated page descriptions not displayed on a page

Status in Mahara:
  Fix Committed
Status in Mahara 21.04 series:
  Fix Committed
Status in Mahara 21.10 series:
  In Progress
Status in Mahara 22.04 series:
  Fix Committed

Bug description:
  Upgrading from a site before Mahara 21.10 causes problems when images
  were added to the page description field. The URL is retained but the
  block ID is not added, therefore not displaying the image on the page.

  This was introduced in bug #1913386

  To replicate:

  1. Install fresh Mahara 20.04.
  2. Create a page and add an image to the page description. The URL will look 
something like 
http://DOMAIN/artefact/file/download.php?file=6&view=7&embedded=1&description=7
  3. Upgrade the site to 21.10 / main.
  4. View your page.

  Result:

  - Expected: The page description is now displayed in the block called 
'Description' and the image is shown. The URL should look something like:
  
http://DOMAIN/artefact/file/download.php?file=6&view=7&embedded=1&description=7&text=27
 with the &text= at the end to reference the block in which the image has been 
embedded.
  - Actual: the page description is now displayed in the block called 
'Description' but there is a broken image as the URL hasn't changed.

  Workaround for portfolios that can be edited:

  1. Edit the page.
  2. Click the 'Edit block' icon for the 'Description' block. You should see 
the image in the TinyMCE editor window.
  3. Save the block and the image will have the block reference added.

  This workaround is not possible for submitted pages. That's why we
  will need to provide an upgrade step.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1953086/+subscriptions


_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to