2 namespace TYPO3\CMS\Backend\Controller\Wizard;
49 protected $closeWindow =
'<script language="javascript" type="text/javascript">close();</script>';
56 parent::__construct();
85 $content = $this->main();
86 $response->
getBody()->write($content);
97 public function main()
103 $table = $this->P[
'table'];
104 $field = $this->P[
'field'];
105 $config =
$GLOBALS[
'TCA'][$table][
'columns'][$field][
'config'];
106 $fTable = $config[
'foreign_table'];
108 $urlParameters = array(
109 'returnUrl' => BackendUtility::getModuleUrl(
'wizard_edit', array(
'doClose' => 1))
113 if (is_array($config)
114 && $config[
'type'] ===
'select'
117 && $this->P[
'currentValue'] && $fTable
120 $urlParameters[
'edit[' . $fTable .
'][' . $this->P[
'currentValue'] .
']'] =
'edit';
122 $url = BackendUtility::getModuleUrl(
'record_edit', $urlParameters);
124 }
elseif (is_array($config)
125 && $this->P[
'currentSelectedValues']
126 && ($config[
'type'] ===
'select'
127 && $config[
'foreign_table']
128 || $config[
'type'] ===
'group'
129 && $config[
'internal_type'] ===
'db'
134 $allowedTables = $config[
'type'] ===
'group' ? $config[
'allowed'] : $config[
'foreign_table'];
139 $relationHandler->start($this->P[
'currentSelectedValues'], $allowedTables);
140 $value = $relationHandler->getValueArray($prependName);
142 foreach ($value as $rec) {
144 $urlParameters[
'edit[' . $recTableUidParts[0] .
'][' . $recTableUidParts[1] .
']'] =
'edit';
147 $url = BackendUtility::getModuleUrl(
'record_edit', $urlParameters);