diff --git a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Document_getStandardFileName.xml b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Document_getStandardFileName.xml index 277a1a220871dca9dea14f5f8288eab89abcf30c..d45ae73c53ec806bfc9cd5c1e07b03050a8fcf9a 100644 --- a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Document_getStandardFileName.xml +++ b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Document_getStandardFileName.xml @@ -73,7 +73,7 @@ if context.getLanguage():\n file_name = \'%s-%s\' % (file_name, context.getLanguage(),)\n if format:\n extension = format.rsplit(\'.\')[-1]\n -elif not extension and context.hasSourceReference():\n +elif not extension and \'.\' in context.getSourceReference(\'\'):\n extension = context.getSourceReference().rsplit(\'.\')[-1]\n if extension:\n file_name = \'%s.%s\' % (file_name, extension,)\n diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision index 2ddfe0b71fc9f28f045b747405e236aebe6c1c57..8ffdba9a31b940d81f3d1bcf142c4955d7c5ac8b 100644 --- a/bt5/erp5_base/bt/revision +++ b/bt5/erp5_base/bt/revision @@ -1 +1 @@ -897 \ No newline at end of file +900 \ No newline at end of file