Skip to content

Commit 3ae3667

Browse files
authored
Merge pull request #220 from aschempp/master
Correctly set the field and inputName attributes when creating DC
2 parents 5a873f2 + 685bcee commit 3ae3667

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

system/modules/multicolumnwizard/MultiColumnWizard.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,9 @@ public function generate()
390390
}
391391

392392
$dc = new $dataContainer($this->strTable);
393-
$dc->field = $objWidget->id;
394-
$dc->inputName = $objWidget->id;
393+
$dc->field = $this->strField;
394+
$dc->inputName = $this->strField;
395+
$dc->strInputName = $this->strField;
395396

396397
foreach ($GLOBALS['TL_DCA'][$this->strTable]['fields'][$this->strField]['save_callback'] AS $callback)
397398
{
@@ -627,8 +628,9 @@ public function generate()
627628
}
628629

629630
$dc = new $dataContainer($this->strTable);
630-
$dc->field = $objWidget->id;
631+
$dc->field = $strKey;
631632
$dc->inputName = $objWidget->id;
633+
$dc->strInputName = $objWidget->id;
632634
$dc->value = $objWidget->value;
633635

634636
foreach ($arrField['wizard'] as $callback)

0 commit comments

Comments
 (0)