[BUGIFX] Missing return statement 28/25328/2
authorFrancois Suter <francois@typo3.org>
Tue, 12 Nov 2013 16:56:36 +0000 (17:56 +0100)
committerFrancois Suter <francois@typo3.org>
Tue, 12 Nov 2013 16:58:15 +0000 (17:58 +0100)
When a transForeignTable is defined, but the TCA definition
is incomplete, the record set should be returned as is.

Resolves: #53571
Releases: 2.3
Change-Id: Id6e58548e1c222b6eb73f31f18d422ec71c3db96
Reviewed-on: https://review.typo3.org/25328
Reviewed-by: Francois Suter
Tested-by: Francois Suter
ChangeLog
class.tx_overlays.php

index 57490c4..d5006d6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-11-12 Francois Suter (Cobweb)  <typo3@cobweb.ch>
+
+       * Added missing return statement, resolves #53571
+
 2013-09-17 Francois Suter (Cobweb)  <typo3@cobweb.ch>
 
        * Corrected handling of l10n_mode with TYPO3 CMS 6.1, resolves #52044
index 68e4a8c..7b14cbc 100644 (file)
@@ -566,6 +566,11 @@ final class tx_overlays {
                                                        }
                                                                // Return the overlaid recordset
                                                        return $overlaidRecordset;
+
+                                               // The foreign table definition is incomplete, don't perform overlays and
+                                               // return recordset as is
+                                               } else {
+                                                       return $recordset;
                                                }
 
                                                // The foreign table has no TCA definition, it's impossible to perform overlays