So the following should be done since this is a site setting and thus if one person can choose a page theme, everyone on the site can choose a page theme. However, we can restrict the visibility of a theme to institution members.
1. If you copy a page that has a page theme applied (i.e. 'theme' in table 'view' is not set to 'null), then copy the theme value into the page copy. 2. If a theme that was set on a page is not available to the person copying the portfolio, display the page in the default theme for their account and remove the value from the page copy so that Mahara doesn't have to check every time if the theme is available. -- 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/1985857 Title: If a portfolio is shared and made copyable then it's page theme disappears Status in Mahara: Confirmed Status in Mahara 21.04 series: Confirmed Status in Mahara 21.10 series: Confirmed Status in Mahara 22.04 series: Confirmed Status in Mahara 22.10 series: Confirmed Bug description: It is due to the change in https://reviews.mahara.org/c/mahara/+/4064/12/htdocs/lib/view.php#5990 To replicate: 1) Turn on allow page themes in Admin -> Settings under the Accounts section 2) Create a page and in Advanced settings give is a theme, say modern View the page - it should have theme showing 3) Share the page with someone else and set allow copying to be true 4) Edit the settings for the page - the ability to choose a theme now gone (no field in form) The change was added in relation to site templates but effects other pages made copyable too What we need is to also check that the view is owned by a site/institution and/or the person is allowed to choose themes is on/off and who is viewing it Owner viewing own page should always be able to see the theme. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1985857/+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

