← Back to team overview

mahara-contributors team mailing list archive

[Bug 1638733] Re: Static pages gives js error

 

** Changed in: mahara/17.04
       Status: Fix Released => Fix Committed

-- 
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/1638733

Title:
  Static pages gives js error

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

Bug description:
  I get this error:

  TypeError: $(...) is null
   if ($('editsitepage_pageusedefault').checked == true) {

  This is because the 'use default' option is not present on the site
  static pages but is on the institution static pages.

  Need to detect if the element exists before trying to find it's
  'checked' status

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


References