Skip to content

Commit

Permalink
Fixed notes' bulk update on category deletion (closes #954)
Browse files Browse the repository at this point in the history
  • Loading branch information
federicoiosue committed Jan 5, 2024
1 parent fca3d9f commit a183e8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 + " = ?",
Expand Down

0 comments on commit a183e8e

Please sign in to comment.