From a183e8e350fe0cce18e6eb4b47300ac38e25093e Mon Sep 17 00:00:00 2001 From: Federico Iosue Date: Fri, 5 Jan 2024 13:40:07 +0100 Subject: [PATCH] Fixed notes' bulk update on category deletion (closes #954) --- .../src/main/java/it/feio/android/omninotes/db/DbHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omniNotes/src/main/java/it/feio/android/omninotes/db/DbHelper.java b/omniNotes/src/main/java/it/feio/android/omninotes/db/DbHelper.java index 4cf182197..530291dbd 100644 --- a/omniNotes/src/main/java/it/feio/android/omninotes/db/DbHelper.java +++ b/omniNotes/src/main/java/it/feio/android/omninotes/db/DbHelper.java @@ -906,7 +906,7 @@ public long deleteCategory(Category category) { SQLiteDatabase db = getDatabase(true); // Un-categorize notes associated with this category ContentValues values = new ContentValues(); - values.put(KEY_CATEGORY, ""); + values.putNull(KEY_CATEGORY); // Updating row db.update(TABLE_NOTES, values, KEY_CATEGORY + " = ?",