[api] fix for ugly bug in find_flag_state that only looked at the order
authorStephan Kulow <coolo@suse.de>
Thu, 1 Sep 2011 12:51:30 +0000 (14:51 +0200)
committerStephan Kulow <coolo@suse.de>
Thu, 1 Sep 2011 12:51:30 +0000 (14:51 +0200)
commit886ddc98870f88a3a610b36f8b7fd8c39bd47db7
tree9f7a5705ddd90c196e311c6a72304aeeb8d2cc15
parentba2afeaad45087599a72f06046c4d12711c2b48d
[api] fix for ugly bug in find_flag_state that only looked at the order
of the flags and counted the last one as most significant

Only used by status request and source access (that doesn't have per-repo
flags, so it's not affected)
src/api/app/controllers/status_controller.rb
src/api/app/helpers/flag_helper.rb