Skip to content

Commit

Permalink
Merge pull request #234 from zonky2/Hotfix_add_title_at_pagePicker_an…
Browse files Browse the repository at this point in the history
…d_filePicker_modal_window

Hotfix add title at pagePicker and filePicker modal window
  • Loading branch information
davidmaack authored Oct 10, 2017
2 parents 41665d1 + a6e11de commit 4a7cabd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion system/modules/multicolumnwizard/MultiColumnWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @copyright Andreas Schempp 2011
* @copyright certo web & design GmbH 2011
* @copyright MEN AT WORK 2013
* @author Ingolf Steinhardt <[email protected]>
* @author Ingolf Steinhardt <[email protected]> 2017
* @package MultiColumnWizard
*/
class MultiColumnWizard extends Widget implements uploadable
Expand Down Expand Up @@ -886,6 +886,9 @@ protected function initializeWidget(&$arrField, $intRow, $strKey, $varValue)
$xlabel .= ' <a href="' . $strContaoPrefix . 'files.php' . $path . '" title="' . specialchars($GLOBALS['TL_LANG']['MSC']['fileManager']) . '" data-lightbox="files 765 80%">' . $this->generateImage('filemanager.gif', $GLOBALS['TL_LANG']['MSC']['fileManager'], 'style="vertical-align:text-bottom;"') . '</a>';

$arrField['strField'] = $this->strField . '__' . $strKey;

// Add title at modal window.
$GLOBALS['TL_DCA'][$this->strTable]['fields'][$arrField['strField']]['label'][0] = (is_array($arrField['label']) && $arrField['label'][0] != '') ? $arrField['label'][0] : $strKey;
}

// Add the table import wizard
Expand Down

0 comments on commit 4a7cabd

Please sign in to comment.