# HG changeset patch # User Matthew Wild # Date 1533541186 -3600 # Node ID decad04ec1842c0ea87a1f7cfae539f538e7d651 # Parent 3dd5034a32336038236b42f56c92a0d76be61a09 pubsub.lib: Add comment about tonumber hack diff -r 3dd5034a3233 -r decad04ec184 plugins/mod_pubsub/pubsub.lib.lua --- a/plugins/mod_pubsub/pubsub.lib.lua Mon Aug 06 08:29:49 2018 +0100 +++ b/plugins/mod_pubsub/pubsub.lib.lua Mon Aug 06 08:39:46 2018 +0100 @@ -152,6 +152,9 @@ for config_field, config_value in pairs(config) do local mapped_name = reverse_config_field_map[config_field]; if mapped_name then + -- FIXME: The intention is to add "subtype" support to + -- util.dataforms, which will remove the need for this + -- ugly hack if mapped_name == "max_items" then config_value = tonumber(config_value); end