← Back to team overview

dhis2-devs team mailing list archive

[Bug 1381399] Re: No org units in page causes top menu not to load

 

Fixed in trunk revision #17123.

Caused by list table being used to display 'no org unit children' error
message (in a table row) and then attempting to apply the
commons.js->listTable function to the (badly formed) table. The error is
specific for organisationUnit.vm. Solved by conditionally creating a
mock table which does not have the 'list' id when no org units are
present.

** Changed in: dhis2
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1381399

Title:
  No org units in page causes top menu not to load

Status in DHIS 2:
  Fix Committed

Bug description:
  
  Test this on a database without any org units.

  - Go to org unit module

  - Go to org units

  - Look in javascript console where it says "Uncaught TypeError: Cannot
  read property '0' of undefined
  jquery.tablesorter.min.js?_rev=16410:4".

  > This prevents the top menu Apps icon to load.

  Possible fixes is to upgrade the jquery tablesorter plugin, and to
  investigate why this happens here and not in other places with empty
  lists of objects.

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


References