Function JDBI.combine() does not work if is passed only one argument
--------------------------------------------------------------------
Key: COCOON-2157
URL: https://issues.apache.org/jira/browse/COCOON-2157
Project: Cocoon
Issue Type: Bug
Components: - Samples, Blocks: Forms
Affects Versions: 2.2-dev (Current SVN)
Reporter: Grzegorz Kossakowski
Priority: Minor
After taking a closer look at JDBI.combine() function:
JDBI.combine = function() {
if (arguments.length == 0) {
return java.util.Collections.EMPTY_MAP;
} else if (arguments.length == 1) {
return JDBI._toMap(arguments[1]);
...
}
It is clear that line
return JDBI._toMap(arguments[1]);
should be replaced by:
return JDBI._toMap(arguments01]);
because arguments array is indexed from 0 not from 1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.