aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Winston2024-06-09 21:31:26 -0400
committerBen Winston2024-06-09 21:32:02 -0400
commit134e4f29275ba41254aae5a0ea2b81e3a7de8276 (patch)
tree61f6a9e6c3d39caa309b409cb32fbfa0d5c99bf7
parent0b50f953a205d213cfa8a1feefeba556e242b407 (diff)
bugfix: don't present _other as an option during add
-rw-r--r--booki.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/booki.c b/booki.c
index 7bed085..2379943 100644
--- a/booki.c
+++ b/booki.c
@@ -1011,8 +1011,8 @@ void add(char *booki_file) {
DataField datafield;
for (int i = 0; i < BOOK_FIELDS_COUNT; i++) {
datafield = BOOK_FIELDS[i];
- // skip ID for new books
- if (ATTR_MATCH(datafield.name, "id"))
+ // skip ID and _other for new books
+ if (ATTR_MATCH(datafield.name, "id") || ATTR_MATCH(datafield.name, "_other"))
continue;
// otherwise, always write the name first
fputs(datafield.name, edit_file);