Fix js logic.
Fix js logic.

oiami/otrs,s7design/otrs,eliasp/otrs,crythias/otrs,eliasp/otrs,oiami/otrs,capeit-tto/otrs,nilei/otrs,linearregression/otrs,vlascoder/otrs,muehlbauer/otrs,brandonshults01/otrs,rudy500/otrs,balazj/otrs,vlascoder/otrs,muehlbauer/otrs,xhoy/otrs,mbeijen/otrs-1,mburggraf/otrs,oiami/otrs,PortgasDAce/otrs,eliasp/otrs,oiami/otrs,xhoy/otrs,rudy500/otrs,nilei/otrs,crythias/otrs,mburggraf/otrs,noritnk/otrs,nilei/otrs,nilei/otrs,xhoy/otrs,MBRG/otrs,s7design/otrs,balazj/otrs,oiami/otrs,muehlbauer/otrs,mburggraf/otrs,xhoy/otrs,mbeijen/otrs-1,xhoy/otrs,capeit-tto/otrs,crythias/otrs,rudy500/otrs,eliasp/otrs,balazj/otrs,crythias/otrs,mburggraf/otrs,noritnk/otrs,linearregression/otrs,balazj/otrs,thorsteneckel/otrs,StCyr/otrs,linearregression/otrs,thorsteneckel/otrs,StCyr/otrs,s7design/otrs,muehlbauer/otrs,moritz/otrs,muehlbauer/otrs,StCyr/otrs,moritz/otrs,s7design/otrs,nilei/otrs,brandonshults01/otrs,PortgasDAce/otrs,capeit-tto/otrs,balazj/otrs,MBRG/otrs,rudy500/otrs,crythias/otrs,linearregression/otrs,MBRG/otrs,moritz/otrs,thorsteneckel/otrs,StCyr/otrs,thorsteneckel/otrs,PortgasDAce/otrs,linearregression/otrs,brandonshults01/otrs,noritnk/otrs,thorsteneckel/otrs,StCyr/otrs,PortgasDAce/otrs,mbeijen/otrs-1,brandonshults01/otrs,PortgasDAce/otrs,vlascoder/otrs,mburggraf/otrs,rudy500/otrs,moritz/otrs,moritz/otrs,MBRG/otrs,brandonshults01/otrs,s7design/otrs,MBRG/otrs,eliasp/otrs