Actions
Bug #35244
closedTCAtree inline record triggers
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-03-26
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
PHP Warning: Missing argument 2 for extDirect_DataProvider_BackendUserSettings::addToList()
in /home/phil/t3-playground/t3-git/t3lib/extjs/dataprovider/class.extdirect_dataprovider_beusersettings.php line 107
This happens if I try to save a content element with a inline relation from the test extension from #27957.
The reason is that the function processRpc
in class.t3lib_extjs_extdirectrouter.php
does
return call_user_func_array(
array($endpointObject, $singleRequest->method),
is_array($singleRequest->data) ? $singleRequest->data : array()
);
is called with $singleRequest->data
being just array(0 => 'tcaTrees.731c5105a19f1cd75f62dd10f39355b1')
.
I'll attach the raw json data.
Files
Updated by Philipp Gampe over 12 years ago
The json file actually contains three parameters for data.
Updated by Philipp Gampe over 12 years ago
Ok, some more info, maybe it helps.
The exception happens at $index = 111
which would be this entry:
{"action":"ExtDirect","method":"addToList","data":["tcaTrees.731c5105a19f1cd75f62dd10f39355b1",0,"4f512819cab1c83f0747fa5a12c50996a64133a8"],"type":"rpc","tid":3070}
Notice that there are no quotes around the second parameter of the data array. In all other lines, quotes do exist.
Also the last line is only
{"action":"ExtDirect","method":"addToList","data":["tcaTrees.731c5105a19f1cd75f62dd10f39355b1","4f512819cab1c83f0747fa5a12c50996a64133a8"],"type":"rpc","tid":3071}
Here the second parameter is missing it all.
Updated by Björn Pedersen about 12 years ago
Same as http://forge.typo3.org/issues/31978 ?
Updated by Mathias Schreiber almost 10 years ago
- Status changed from New to Closed
- Is Regression set to No
seems to be a duplicate
Actions