Hi
I've downloaded the trunk newsletter file today, and installed it. The stable version wouldn't work at all for me - nothing happened when I hit the create button, and nothing appeared in the left column.
I am trying to upload a csv file to the site, but am encountering an error. See below. I have searched and searched to try and resolve this and am having no luck. Any advice?
Any help at all would be much appreciated.
Thanks.
[Notice] Undefined index: Set
POST /SilverStripe-v2.3.3/admin/newsletter/UploadForm
Line 236 in C:\wamp\www\SilverStripe-v2.3.3\newsletter\code\RecipientImportField.php
Source
227 return preg_match( '/.*\.csv$/i', $file['name'] ) > 0;
228 }
229
230 function confirm( $data, $form ) {
231 $id = $data['ID'];
232 $mailType = DataObject::get_one("NewsletterType", "ID = $id");
233 if($mailType->GroupID)
234 $group = DataObject::get_one("Group", "ID = $mailType->GroupID");
235 // @TODO Look into seeing if $data['Set'] should be removed since it seems to be undefined
236 return $this->importMembers( $id, $group, $data['ImportFileColumns'], $data['Set'] );
237 }
238
239 function cancel( $data, $form ) {
240 $newForm = $this->controller->UploadForm( $data['ID'] );
241 return $newForm->forTemplate();
242 }
Trace
* RecipientImportField_UploadForm->confirm(Array,RecipientImportField_UploadForm,HTTPRequest)
Line 246 of Form.php
* Form->httpSubmission(HTTPRequest)
Line 129 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 143 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 277 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(/admin/newsletter/UploadForm)
Line 118 of main.php