[BUGFIX] Swapping throws ExtDirect Exception
authorOliver Hader <oliver@typo3.org>
Mon, 13 Jun 2011 12:51:56 +0000 (14:51 +0200)
committerOliver Hader <oliver@typo3.org>
Mon, 13 Jun 2011 12:51:56 +0000 (14:51 +0200)
An undefined variable is used on the JavaScript side
which leads to an undefined value to be transported
through ExtDirect. However undefined values are stripped
away and thus modify the arguments count.

Change-Id: I5980c9e701119637794a7c013dcd6aff413f1018
Resolves: #26605
Releases: 4.6, 4.5

typo3/sysext/workspaces/Resources/Public/JavaScript/configuration.js

index 9ecd2c7..66a395d 100644 (file)
@@ -352,7 +352,7 @@ TYPO3.Workspaces.Configuration.SwapButton = {
                                        msg: TYPO3.lang["window.swap.message"],
                                        fn: function(result) {
                                                if (result == 'yes') {
-                                                       TYPO3.Workspaces.Actions.swapSingleRecord(record.json.table, record.json.wsversion, record.json.uid);
+                                                       TYPO3.Workspaces.Actions.swapSingleRecord(record.json.table, record.json.t3ver_oid, record.json.uid);
                                                }
                                        }
                                };