diff mod_incidents_handling/incidents_handling/mod_incidents_handling.lua @ 918:dec71c31fb78

mod_incidents_handling: run cleanup and save the store when a new object is added.
author Marco Cirillo <maranda@lightwitch.org>
date Sat, 02 Mar 2013 11:47:20 +0100
parents d814cc183c40
children f183de41b7c6
line wrap: on
line diff
--- a/mod_incidents_handling/incidents_handling/mod_incidents_handling.lua	Tue Feb 26 16:11:20 2013 +0100
+++ b/mod_incidents_handling/incidents_handling/mod_incidents_handling.lua	Sat Mar 02 11:47:20 2013 +0100
@@ -146,6 +146,7 @@
 		}
 		
 		self[new_object.data.id.text] = new_object
+		self:clean() ; self:save()
 		return new_object.data.id.text
 	else return false end
 end