From 254c5a95e0b90df8de36b8b9628af3103a8c7919 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Wed, 17 Nov 2010 15:54:45 +0000 Subject: [PATCH] if there is no dot in filename, the entirely string is returned. so filename can become something like my_filename_without_extension.my_filename_without_extension git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40335 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_base/Document_getStandardFileName.xml | 2 +- bt5/erp5_base/bt/revision | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 277a1a2208..d45ae73c53 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 2ddfe0b71f..8ffdba9a31 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 -- 2.30.9