Changeset

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 917:d3497b81a3b5
children 919:7d72fb45b1e4
files mod_incidents_handling/incidents_handling/mod_incidents_handling.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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