Solved
how do i combine arrays in javascript
ids = new Array()
.
.
ids.concat(bean.getRelatedIssues("relationship");
does not work
ids = new Array()
.
.
ids.concat(bean.getRelatedIssues("relationship");
does not work
The concat function doesn't modify its operand, you have to assign the results of concat to a variable.
You can do a direct assignment:
var ids = bean.getRelatedIssues("relationship");
Or if you must add to an array:
ids = ids.concat( bean.getRelatedIssues("relationship") );
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.