|
|
@ -144,6 +144,9 @@ public class ChangesHappened<TYPE extends RemoteModel, OE extends OutstandingEnt
|
|
|
|
if (!validateValue(localProperty, value))
|
|
|
|
if (!validateValue(localProperty, value))
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (value == null)
|
|
|
|
|
|
|
|
changeJson.put("value", JSONObject.NULL);
|
|
|
|
|
|
|
|
else
|
|
|
|
changeJson.put("value", value);
|
|
|
|
changeJson.put("value", value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -261,14 +264,17 @@ public class ChangesHappened<TYPE extends RemoteModel, OE extends OutstandingEnt
|
|
|
|
String value = getAsString(data);
|
|
|
|
String value = getAsString(data);
|
|
|
|
if (RemoteModel.NO_UUID.equals(value) && property.checkFlag(Property.PROP_FLAG_USER_ID))
|
|
|
|
if (RemoteModel.NO_UUID.equals(value) && property.checkFlag(Property.PROP_FLAG_USER_ID))
|
|
|
|
return ActFmPreferenceService.userId();
|
|
|
|
return ActFmPreferenceService.userId();
|
|
|
|
if (property.checkFlag(Property.PROP_FLAG_JSON))
|
|
|
|
if (property.checkFlag(Property.PROP_FLAG_JSON)) {
|
|
|
|
|
|
|
|
if (TextUtils.isEmpty(value))
|
|
|
|
|
|
|
|
return null;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (value != null && value.startsWith("["))
|
|
|
|
if (value != null && value.startsWith("["))
|
|
|
|
return new JSONArray(value);
|
|
|
|
return new JSONArray(value);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return new JSONObject(value);
|
|
|
|
return new JSONObject(value);
|
|
|
|
} catch (JSONException e) {
|
|
|
|
} catch (JSONException e) {
|
|
|
|
//
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return value;
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|