mod_pubsub: Use dataforms validation to specify that max_items is an integer
authorKim Alvefur <zash@zash.se>
Sat, 01 Sep 2018 03:02:44 +0200
changeset 9248 cc32aae5c7da
parent 9247 b3b156bd9914
child 9249 397e8e5a2f1f
mod_pubsub: Use dataforms validation to specify that max_items is an integer
plugins/mod_pubsub/pubsub.lib.lua
--- a/plugins/mod_pubsub/pubsub.lib.lua	Sat Sep 01 03:01:55 2018 +0200
+++ b/plugins/mod_pubsub/pubsub.lib.lua	Sat Sep 01 03:02:44 2018 +0200
@@ -71,6 +71,7 @@
 	};
 	{
 		type = "text-single";
+		datatype = "xs:integer";
 		name = "max_items";
 		var = "pubsub#max_items";
 		label = "Max # of items to persist";