Skip to content
  • Hugh Davenport's avatar
    Allow institutions to select "None" online users · 34d45ce0
    Hugh Davenport authored
    
    
    Before it checked if the value was empty, which is true when
    the value is 0. If this was the case, set it as default to 2
    
    This patch checks instead if it is set, and only then sets the
    default of 2. This allows you to select the option 0 (None)
    
    Also makes sure that the online users block is not shown when
    there are no users to display (ie, all institutions that the user
    is in have None selected)
    
    Change-Id: Ib168d9796484dacbb8d58d111127c9bf21069a59
    Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
    34d45ce0