update Label index when saving Label object if grouping is enabled and used

This commit is contained in:
2011-03-09 11:57:18 +00:00
parent e3f23433d9
commit 5d3c181641

View File

@@ -28,6 +28,7 @@ module Redistat
def save
@saved = (db.set("#{KEY_LEBELS}#{hash}", @raw) == "OK") if @options[:hashed_label]
update_index if groups.size > 1 # TODO: add a label_indexing option
self
end