Allow JSoup as note text

This commit is contained in:
M66B
2023-08-14 10:58:36 +02:00
parent 66016e386d
commit b5f3d3718a
5 changed files with 39 additions and 11 deletions

View File

@@ -1509,6 +1509,16 @@ public class FragmentRule extends FragmentBase {
JSONObject jdate = jcondition.optJSONObject("date");
JSONObject jschedule = jcondition.optJSONObject("schedule");
JSONObject jaction = new JSONObject(action);
int type = jaction.getInt("type");
if (type == EntityRule.TYPE_NOTES) {
String notes = jaction.optString("notes");
if (notes.startsWith(EntityRule.JSOUP_PREFIX)) {
jcondition.put("notes_jsoup", true);
condition = jcondition.toString();
}
}
if (jsender == null &&
jrecipient == null &&
jsubject == null &&