Headlines: fix multiple article ids not passed to setScore as an array
This commit is contained in:
parent
53061d1508
commit
8cf9c451dc
|
@ -178,7 +178,7 @@ const Headlines = {
|
||||||
if (scores.length != 0) {
|
if (scores.length != 0) {
|
||||||
scores.forEach((score) => {
|
scores.forEach((score) => {
|
||||||
promises.push(xhr.post("backend.php",
|
promises.push(xhr.post("backend.php",
|
||||||
{op: "article", method: "setScore", "ids[]": ops.rescore[score].toString(), score: score}));
|
{op: "article", method: "setScore", "ids[]": ops.rescore[score], score: score}));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue