"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core-bundle/src/Resources/contao/classes/Backend.php" between
contao-4.9.11.tar.gz and contao-4.9.12.tar.gz

About: Contao (fka TYPOlight) is a content management system (CMS). Long-term support (LTS).

Backend.php  (contao-4.9.11):Backend.php  (contao-4.9.12)
skipping to change at line 523 skipping to change at line 523
// Add the name of the parent elements // Add the name of the parent elements
if ($strTable && \in_array($strTable, $arrTables) && $str Table != $arrTables[0]) if ($strTable && \in_array($strTable, $arrTables) && $str Table != $arrTables[0])
{ {
$trail = array(); $trail = array();
$pid = $dc->id; $pid = $dc->id;
$table = $strTable; $table = $strTable;
$ptable = ($act != 'edit') ? $GLOBALS['TL_DCA'][$ strTable]['config']['ptable'] : $strTable; $ptable = ($act != 'edit') ? $GLOBALS['TL_DCA'][$ strTable]['config']['ptable'] : $strTable;
while ($ptable && !\in_array($GLOBALS['TL_DCA'][$ table]['list']['sorting']['mode'], array(5, 6))) while ($ptable && !\in_array($GLOBALS['TL_DCA'][$ table]['list']['sorting']['mode'], array(5, 6)) && ($GLOBALS['TL_DCA'][$ptable][ 'config']['dataContainer'] ?? null) === 'Table')
{ {
$objRow = $this->Database->prepare("SELEC T * FROM " . $ptable . " WHERE id=?") $objRow = $this->Database->prepare("SELEC T * FROM " . $ptable . " WHERE id=?")
->limit(1) ->limit(1)
->execute($pid); ->execute($pid);
// Add only parent tables to the trail // Add only parent tables to the trail
if ($table != $ptable) if ($table != $ptable)
{ {
// Add table name // Add table name
if (isset($GLOBALS['TL_LANG']['MO D'][$table])) if (isset($GLOBALS['TL_LANG']['MO D'][$table]))
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)