Skip to content

Commit

Permalink
Merge pull request #3 from Cash2m/typo3-ext-sa-2016-008
Browse files Browse the repository at this point in the history
[BUGFIX] Apply changes from v2.5.4
  • Loading branch information
xperseguers committed Mar 14, 2016
2 parents 56606eb + 1196a01 commit 19c9bc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions wizard/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ function moduleContent() {
} else {
// get the single record
$where = 'uid='.intval($vars['uid']).' AND deleted=0';
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('sys_language_uid,'.$vars['field'], $vars['table'], $where);
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tt_content', $where);
$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);

// get a lanuage prefix for the description
$this->languagePrefix = ($row['sys_language_uid']>0) ? '-'.$row['sys_language_uid'] : '';

// read the flexform settings and transform it to array
$flexformArray = t3lib_div::xml2array($row[$vars['field']]);
$flexformArray = t3lib_div::xml2array($row['pi_flexform']);
$flexformArray = $flexformArray['data']['sDEF']['lDEF'];

// get all the infos we need
Expand Down
4 changes: 2 additions & 2 deletions wizard/subdir.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ function moduleContent() {
} else {
// get the single record
$where = 'uid='.intval($vars['uid']).' AND deleted=0';
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('sys_language_uid,'.$vars['field'], $vars['table'], $where);
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tt_content', $where);
$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);

$this->languagePrefix = ($row['sys_language_uid']>0) ? '-'.$row['sys_language_uid'] : '';

// read the flexform settings and transform it to array
$flexformArray = t3lib_div::xml2array($row[$vars['field']]);
$flexformArray = t3lib_div::xml2array($row['pi_flexform']);
$flexformArray = $flexformArray['data']['sDEF']['lDEF'];

// get all the infos we need
Expand Down

0 comments on commit 19c9bc3

Please sign in to comment.