Commit 9e1ec652 authored by Rafael Monnerat's avatar Rafael Monnerat

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

Also define a short cache, to prevent creation explosion
parent f904129e
Pipeline #7385 failed with stage
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,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment