Commit c2066252 authored by Ted Trask's avatar Ted Trask

Fix bug in listmessages view where username is wrong for forwarding messages

parent cbb332b2
......@@ -15,7 +15,7 @@ if viewlibrary.check_permission("listusers") and (viewlibrary.check_permission("
table.sort(users.value, function(a,b) if a.firstname ~= b.firstname then return a.firstname < b.firstname elseif a.lastname ~= b.lastname then return a.lastname < b.lastname else return a.username < b.username end end)
for i,u in ipairs(users.value) do
if u.username ~= session.userinfo.userid then
useroptions[#useroptions+1] = {value=u.firstname, label=u.firstname..' '..u.lastname..' ('..u.username..')'}
useroptions[#useroptions+1] = {value=u.username, label=u.firstname..' '..u.lastname..' ('..u.username..')'}
end
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment