Skip to content

Commit bfd9497

Browse files
committed
correction to ajax button to post "id" singular
1 parent 1ea5294 commit bfd9497

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Griddly/Scripts/griddly.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,9 @@
10431043
{
10441044
var postdata = {};
10451045
for (var k in selection)
1046-
postdata[k] = selection[k][i];
1046+
{
1047+
postdata[k === "ids" ? "id" : k] = selection[k][i];
1048+
}
10471049

10481050
$.ajax(url,
10491051
{

0 commit comments

Comments
 (0)