Skip to content

Commit

Permalink
bug fix of editing id column generated from the server
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegKi committed Apr 10, 2015
1 parent 49d0c75 commit ce6a225
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 88 deletions.
2 changes: 1 addition & 1 deletion js/grid.formedit.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@
//id processing
// user not set the id ret[2]
if (!ret[2]) { ret[2] = jgrid.randId(); }
if (postdata[idname] == null || postdata[idname] === "_empty") {
if (postdata[idname] == null || postdata[idname] === "_empty" || postdata[oper] === opers.addoper) {
postdata[idname] = ret[2];
} else {
ret[2] = postdata[idname];
Expand Down

0 comments on commit ce6a225

Please sign in to comment.