← Back to team overview

mahara-contributors team mailing list archive

[Bug 1315960] [NEW] get_default_category() not robust enough

 

Public bug reported:

when testing out a new plugin I found the check in
View->get_default_category() caused problems if there was nothing set
with sort order = 0 or if the blocktypes of the item with sort order = 0
were hidden on extensions page.

The problem stems from not trying to get the first item in array but the
item with key = 0.

will add patch for fix

** Affects: mahara
     Importance: Low
     Assignee: Robert Lyon (robertl-9)
         Status: Confirmed

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

Title:
  get_default_category() not robust enough

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  when testing out a new plugin I found the check in
  View->get_default_category() caused problems if there was nothing set
  with sort order = 0 or if the blocktypes of the item with sort order =
  0 were hidden on extensions page.

  The problem stems from not trying to get the first item in array but
  the item with key = 0.

  will add patch for fix

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


Follow ups

References