commit 11247d8400abf9b8855489eafc557093ab64b9de
Author: Doris Tam <email address hidden>
Date: Tue Jan 25 15:34:00 2022 +1300
Bug 1957725: Copy embedded artefacts to new owner when copying a page
Note: The artefact_file_embedded table ties blocks
to embedded artefacts
This patch looks exlusively at files mentioned in the $configdata
- $configdata'text']
- $configdata['instructions']
--- Testing instructions ---
1. Create a personal page and allow copying
2. On the personal page, add a text block
3. Insert an image from your uploaded files into the content of the text block
4. Insert an image from your uploaded files into the instructions
5. Create a group
6. Copy your personal page into the group and note the ID of the new page (from the URL)
7. In the Group files area, go into a folder called 'viewfiles' with another folder named by the page ID
Check: The images in the folder matches the images displayed in the group page
Change-Id: I63d6f469cf9b43e7ed38776e06a8efbab985c076
(cherry picked from commit a98e421946d465c7f064cf3cbe030d7da0878340)
Reviewed: https:/ /reviews. mahara. org/12393 /git.mahara. org/mahara/ mahara/ commit/ 11247d8400abf9b 8855489eafc5570 93ab64b9de
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: 20.10_DEV
commit 11247d8400abf9b 8855489eafc5570 93ab64b9de
Author: Doris Tam <email address hidden>
Date: Tue Jan 25 15:34:00 2022 +1300
Bug 1957725: Copy embedded artefacts to new owner when copying a page
Note: The artefact_ file_embedded table ties blocks
to embedded artefacts
This patch looks exlusively at files mentioned in the $configdata 'instructions' ]
- $configdata'text']
- $configdata[
--- Testing instructions ---
1. Create a personal page and allow copying
2. On the personal page, add a text block
3. Insert an image from your uploaded files into the content of the text block
4. Insert an image from your uploaded files into the instructions
5. Create a group
6. Copy your personal page into the group and note the ID of the new page (from the URL)
7. In the Group files area, go into a folder called 'viewfiles' with another folder named by the page ID
Check: The images in the folder matches the images displayed in the group page
Change-Id: I63d6f469cf9b43 e7ed38776e06a8e fbab985c076 7f064cf3cbe030d 7da0878340)
(cherry picked from commit a98e421946d465c