Commit e4744455 authored by Nicolas Dumazet's avatar Nicolas Dumazet

Render correct method name in error message if portal type contains spaces


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35032 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 56c178f2
......@@ -904,7 +904,7 @@ class Delivery(XMLObject, ImmobilisationDelivery, CompositionMixin):
return method()
else:
raise 'SimulationError', '%s_getRuleReference script is missing.' \
% self.getPortalType()
% self.getPortalType().replace(' ', '')
security.declareProtected( Permissions.AccessContentsInformation,
'getRootSpecialiseValue')
......
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