Skip to content

Commit

Permalink
Merge pull request #220 from aschempp/master
Browse files Browse the repository at this point in the history
Correctly set the field and inputName attributes when creating DC
  • Loading branch information
davidmaack authored Oct 3, 2017
2 parents 5a873f2 + 685bcee commit 3ae3667
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions system/modules/multicolumnwizard/MultiColumnWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,9 @@ public function generate()
}

$dc = new $dataContainer($this->strTable);
$dc->field = $objWidget->id;
$dc->inputName = $objWidget->id;
$dc->field = $this->strField;
$dc->inputName = $this->strField;
$dc->strInputName = $this->strField;

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

$dc = new $dataContainer($this->strTable);
$dc->field = $objWidget->id;
$dc->field = $strKey;
$dc->inputName = $objWidget->id;
$dc->strInputName = $objWidget->id;
$dc->value = $objWidget->value;

foreach ($arrField['wizard'] as $callback)
Expand Down

0 comments on commit 3ae3667

Please sign in to comment.