• Jan Provaznik's avatar
    Fix selection of scoped labels · 45e643f4
    Jan Provaznik authored
    When sorting labels by user selection order, any missing labels
    had index 0. If only single selected label was returned by UI,
    then this label had index 0 too so it was not chosen as the "last
    selected" label. To fix this, any missing labels have index -1.
    45e643f4
scoped_label_set_spec.rb 2.78 KB