[BUGFIX] Invalid use of double-quote
authorXavier Perseguers <typo3@perseguers.ch>
Mon, 11 Apr 2011 13:49:24 +0000 (15:49 +0200)
committerOliver Hader <oliver@typo3.org>
Mon, 11 Apr 2011 13:50:57 +0000 (15:50 +0200)
Due to hard-coded double-quote, workspace query fails when using Oracle.

Change-Id: I6f7570d5e1ddde8f91959191ad86b6b45293ff1e
Resolves: #25887
Releases: 4.6, 4.5

typo3/sysext/workspaces/Classes/Service/Stages.php

index 30ffe1d..70d6539 100644 (file)
@@ -124,14 +124,14 @@ class Tx_Workspaces_Service_Stages {
                                $workspaceStageRecs = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
                                        '*',
                                        self::TABLE_STAGE,
-                                               'parentid=' . $this->getWorkspaceId() . ' AND parenttable="sys_workspace" AND deleted = 0',
+                                       'parentid=' . $this->getWorkspaceId() . ' AND parenttable=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('sys_workspace', self::TABLE_STAGE) . ' AND deleted=0',
                                        '',
                                        'sorting',
                                        '',
                                        'uid'
                                );
                                foreach($workspaceStageRecs as $stage) {
-                                       $stage['title'] =  $GLOBALS['LANG']->sL($this->pathToLocallang . ':actionSendToStage') . ' "' . $stage['title'] . '"'; 
+                                       $stage['title'] =  $GLOBALS['LANG']->sL($this->pathToLocallang . ':actionSendToStage') . ' "' . $stage['title'] . '"';
                                        $stages[] = $stage;
                                }
                        }