fixed bug 1290, removed linkTitleToSelf.returnUrl from TSConfig
authorIngo Renner <ingo.renner@typo3.org>
Sat, 28 Apr 2007 12:26:28 +0000 (12:26 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Sat, 28 Apr 2007 12:26:28 +0000 (12:26 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2289 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_tceforms.php

index f2666ca..90d310a 100755 (executable)
@@ -895,9 +895,8 @@ class t3lib_TCEforms        {
 
                                                // If the record has been saved and the "linkTitleToSelf" is set, we make the field name into a link, which will load ONLY this field in alt_doc.php
                                        $PA['label'] = t3lib_div::deHSCentities(htmlspecialchars($PA['label']));
-                                       if (t3lib_div::testInt($row['uid']) && $PA['fieldTSConfig']['linkTitleToSelf']) {
-                                               $lTTS_url = $this->backPath.'alt_doc.php?edit['.$table.']['.$row['uid'].']=edit&columnsOnly='.$field.
-                                                                       ($PA['fieldTSConfig']['linkTitleToSelf.']['returnUrl']?'&returnUrl='.rawurlencode($this->thisReturnUrl()):'');
+                                       if (t3lib_div::testInt($row['uid']) && $PA['fieldTSConfig']['linkTitleToSelf'] && !t3lib_div::_GP('columnsOnly'))       {
+                                               $lTTS_url = $this->backPath.'alt_doc.php?edit['.$table.']['.$row['uid'].']=edit&columnsOnly='.$field.'&returnUrl='.rawurlencode($this->thisReturnUrl());
                                                $PA['label'] = '<a href="'.htmlspecialchars($lTTS_url).'">'.$PA['label'].'</a>';
                                        }