← Back to team overview

mahara-contributors team mailing list archive

[Bug 1631806] Re: Page descriptions not retained from group, institution and site pages

 

The 15.10 patch is slightly different to the others.

in 16.04+ we can check using the SITE_TEMPLATE constant, but that didn't
exist in 15.10

instead we need to check if $template->get('owner') === '0' as it seems
that fetching the variable from db via get() method make it type string.

But we can't go (int) $template->get('owner') as both '0' and null will
be cast to 0

** Changed in: mahara/16.04
       Status: Confirmed => In Progress

** Changed in: mahara/15.10
       Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1631806

Title:
  Page descriptions not retained from group, institution and site pages

Status in Mahara:
  Fix Committed
Status in Mahara 15.10 series:
  In Progress
Status in Mahara 16.04 series:
  In Progress
Status in Mahara 16.10 series:
  Fix Committed

Bug description:
  Reported at https://mahara.org/interaction/forum/topic.php?id=7731

  When copying a group, institution or site page, the page description
  is not copied, which makes it less useful for templates.

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


References