Fixed mapping folders on importing rules

This commit is contained in:
M66B
2019-07-29 20:05:23 +02:00
parent af028c3daa
commit 99412f294f
2 changed files with 19 additions and 15 deletions

View File

@@ -178,7 +178,8 @@ public class EntityAccount extends EntityOrder implements Serializable {
public static EntityAccount fromJSON(JSONObject json) throws JSONException {
EntityAccount account = new EntityAccount();
// id
if (json.has("id"))
account.id = json.getLong("id");
if (json.has("order"))
account.order = json.getInt("order");