# HG changeset patch # User Matthew Wild # Date 1292984006 0 # Node ID 6daed692264f5268275cc7bab1f34e6e6c5b5410 # Parent 46d9cf613bb153a195f5ce6aabdf29da8946509d util.pubsub: get_items(): When requesting a specific item, use the id as a key to mirror the multiple-item case diff -r 46d9cf613bb1 -r 6daed692264f util/pubsub.lua --- a/util/pubsub.lua Tue Dec 21 22:26:22 2010 +0000 +++ b/util/pubsub.lua Wed Dec 22 02:13:26 2010 +0000 @@ -227,7 +227,7 @@ return false, "item-not-found"; end if id then -- Restrict results to a single specific item - return true, { node_obj.data[id] }; + return true, { [id] = node_obj.data[id] }; else return true, node_obj.data; end