← Back to team overview

mahara-contributors team mailing list archive

[Bug 1931177] [NEW] Plans: Assignment Portfolio preview is producing console error

 

Public bug reported:

A warning and a console error are currently being produced when
attempting to view an Assignment preview when adding a new task to a
plan.

Steps to reproduce:
1. Log in and create a new collection of at least one page (page/s can be blank)
2. Create a new plan (Create-> Plans), set "Template" to 'yes' and "Assignment tasks" to 'yes'
3. Open the 'Developer Tools' console (on Firefox press F12, on Chrome press CNTRL+SHFT+J) and navigate to the 'Console' tab
4. Add a 'New task' to the plan and on 'Assignment portfolio' drop down select the collection and click to preview it.  Inspect the console in the developer tools.
Expected:
The console is clear of errors.
Actual:
The console displays the following error:
"Uncaught ReferenceError: collection_nav_init is not defined" (from code called in new.php -> previewcollectionnav.tpl)
5. Refresh the page
Expected:
The page displays correctly with no warnings
Actual:
The page displays with warning messages:
".../dwoo/compile/raw/0137da1da5ce3bb7b6f4779e5dd77aab.d136.php:39) count(): Parameter must be an array or an object that implements Countable" (See the screenshot attached for details)

** Affects: mahara
     Importance: Undecided
         Status: New

** Attachment added: "FireShot Capture 024 - New task - Mahara - mahara-catalyst.png"
   https://bugs.launchpad.net/bugs/1931177/+attachment/5502971/+files/FireShot%20Capture%20024%20-%20New%20task%20-%20Mahara%20-%20mahara-catalyst.png

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

Title:
  Plans: Assignment Portfolio preview is producing console error

Status in Mahara:
  New

Bug description:
  A warning and a console error are currently being produced when
  attempting to view an Assignment preview when adding a new task to a
  plan.

  Steps to reproduce:
  1. Log in and create a new collection of at least one page (page/s can be blank)
  2. Create a new plan (Create-> Plans), set "Template" to 'yes' and "Assignment tasks" to 'yes'
  3. Open the 'Developer Tools' console (on Firefox press F12, on Chrome press CNTRL+SHFT+J) and navigate to the 'Console' tab
  4. Add a 'New task' to the plan and on 'Assignment portfolio' drop down select the collection and click to preview it.  Inspect the console in the developer tools.
  Expected:
  The console is clear of errors.
  Actual:
  The console displays the following error:
  "Uncaught ReferenceError: collection_nav_init is not defined" (from code called in new.php -> previewcollectionnav.tpl)
  5. Refresh the page
  Expected:
  The page displays correctly with no warnings
  Actual:
  The page displays with warning messages:
  ".../dwoo/compile/raw/0137da1da5ce3bb7b6f4779e5dd77aab.d136.php:39) count(): Parameter must be an array or an object that implements Countable" (See the screenshot attached for details)

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