mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
f7a1b199db
commit
cff0c9186c
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user