[BUGFIX] Two forgotten calls use inline action map 05/56105/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 12 Mar 2018 10:52:22 +0000 (11:52 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Mon, 12 Mar 2018 12:26:19 +0000 (13:26 +0100)
Follow up for #84199 changing two call to use the
new map.

Resolves: #84210
Related: #84199
Releases: master
Change-Id: I1b251c5a759470ad97ca70bed2f5c0cb921f3159
Reviewed-on: https://review.typo3.org/56105
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.inline.js

index 8500e8a..e44975d 100644 (file)
@@ -326,7 +326,7 @@ var inline = {
       if (!this.data.unique || !this.data.unique[objectId]) {
         $selector.find('option').eq(selectedIndex).prop('selected', false);
       }
-      this.makeAjaxCall('create', [objectId, selectedValue], true, context);
+      this.makeAjaxCall(this.methodRequestMap.create, [objectId, selectedValue], true, context);
     }
     return false;
   },
@@ -334,7 +334,7 @@ var inline = {
   // foreign_selector: used by element browser (type='group/db')
   importElement: function(objectId, table, uid) {
     var context = this.getContext(objectId);
-    inline.makeAjaxCall('create', [objectId, uid], true, context);
+    inline.makeAjaxCall(this.methodRequestMap.create, [objectId, uid], true, context);
   },
 
   importElementMultiple: function(objectId, table, uidArray, type) {
@@ -343,7 +343,7 @@ var inline = {
     });
   },
   delayedImportElement: function(objectId, table, uid, type) {
-    if (inline.lockedAjaxMethod['create'] == true) {
+    if (inline.lockedAjaxMethod[this.methodRequestMap.create] == true) {
       window.setTimeout("inline.delayedImportElement('" + objectId + "','" + table + "'," + uid + ", null );",
         300);
     } else {