Skip to content

Commit 685bcee

Browse files
committed
Correctly set the field and inputName attributes when creating DC
1 parent 80d78a9 commit 685bcee

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
@@ -376,8 +376,9 @@ public function generate()
376376
}
377377

378378
$dc = new $dataContainer($this->strTable);
379-
$dc->field = $objWidget->id;
380-
$dc->inputName = $objWidget->id;
379+
$dc->field = $this->strField;
380+
$dc->inputName = $this->strField;
381+
$dc->strInputName = $this->strField;
381382

382383
foreach ($GLOBALS['TL_DCA'][$this->strTable]['fields'][$this->strField]['save_callback'] AS $callback)
383384
{
@@ -611,8 +612,9 @@ public function generate()
611612
}
612613

613614
$dc = new $dataContainer($this->strTable);
614-
$dc->field = $objWidget->id;
615+
$dc->field = $strKey;
615616
$dc->inputName = $objWidget->id;
617+
$dc->strInputName = $objWidget->id;
616618
$dc->value = $objWidget->value;
617619

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

0 commit comments

Comments
 (0)