elofgren: VAR FIX: Initialize 'colCount' to prevent error when importing Newsletter Recipients.

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41965 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-15 21:57:33 +00:00
parent f7a1b199db
commit cff0c9186c

View File

@ -127,7 +127,7 @@ class RecipientImportField extends FormField {
);
$columnSource = array_merge( array( 'Unknown' => 'Unknown' ), $columnSource );
$colCount = 0;
foreach( $columns as $cell ) {
$columnType = $this->getColumnType( $this->parseCSVCell( $cell )->Value() );
$this->tableColumns[] = new DropdownField( 'ImportFileColumns[' . (string)( $colCount++ ) . ']', '', $columnSource, $columnType );