Prevent collapsing fetch/delete

This commit is contained in:
M66B 2021-12-29 15:59:37 +01:00
parent ed40c47e99
commit 31d643c544
1 changed files with 3 additions and 2 deletions

View File

@ -263,8 +263,9 @@ class Core {
case EntityOperation.FETCH: case EntityOperation.FETCH:
if (EntityOperation.FETCH.equals(next.name)) { if (EntityOperation.FETCH.equals(next.name)) {
JSONArray jnext = new JSONArray(next.args); JSONArray jnext = new JSONArray(next.args);
// Same uid // Same uid, delete flag
if (jargs.getLong(0) == jnext.getLong(0)) if (jargs.getLong(0) == jnext.getLong(0) &&
jargs.optBoolean(1) == jnext.optBoolean(1))
skip = true; skip = true;
} }
break; break;