Commit 9e1ec652 by Rafael Monnerat

slapos_crm: Ensure you are comparing integers when get value from preference

Also define a short cache, to prevent creation explosion
1 parent f904129e
Pipeline #7385 for 9e1ec652 failed in 0 seconds
......@@ -14,8 +14,9 @@ def isSupportRequestCreationClosed(destination_decision=None):
support_request_amount = context.portal_catalog.countResults(**kw)[0][0]
return support_request_amount >= limit
return support_request_amount >= int(limit)
return CachingMethod(isSupportRequestCreationClosed,
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!