From cbbdd8c41211d99414dfd585ed4ecfa1bd47084d Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 19 Nov 2007 01:31:27 +0000 Subject: [PATCH] parents-merge 35478 - Fixed bugs with newsletter import (.CSV didn't work if capital letters, no scroll on import form) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@45052 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/Newsletter/RecipientImportField.php | 2 +- templates/Newsletter_RecipientImportField.ss | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/Newsletter/RecipientImportField.php b/code/Newsletter/RecipientImportField.php index 125d2e0e..d3775f47 100755 --- a/code/Newsletter/RecipientImportField.php +++ b/code/Newsletter/RecipientImportField.php @@ -208,7 +208,7 @@ class RecipientImportField_UploadForm extends Form { } function isValidCSV( $file ) { - return preg_match( '/.*\.csv$/', $file['name'] ) > 0; + return preg_match( '/.*\.csv$/i', $file['name'] ) > 0; } function confirm( $data, $form ) { diff --git a/templates/Newsletter_RecipientImportField.ss b/templates/Newsletter_RecipientImportField.ss index cd2758e8..61d1d301 100755 --- a/templates/Newsletter_RecipientImportField.ss +++ b/templates/Newsletter_RecipientImportField.ss @@ -13,6 +13,8 @@