Revision: 30072
          http://sourceforge.net/p/bibdesk/svn/30072
Author:   hofman
Date:     2026-02-27 16:18:17 +0000 (Fri, 27 Feb 2026)
Log Message:
-----------
make sure we don't set an inherited field value

Modified Paths:
--------------
    trunk/bibdesk/BDSKEditor.m

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2026-02-27 15:51:44 UTC (rev 30071)
+++ trunk/bibdesk/BDSKEditor.m  2026-02-27 16:18:17 UTC (rev 30072)
@@ -1251,7 +1251,7 @@
     NSString *oldValue = [publication valueOfField:field] ?: @"";
     NSString *value = [sender objectValue] ?: @"";
     
-    if ([oldValue isInherited] && [NSString isEmptyAsComplexString:value]) {
+    if (([oldValue isInherited] && [NSString isEmptyAsComplexString:value]) || 
[value isInherited]) {
         [sender setObjectValue:oldValue];
     } else if (NO == [value isEqualAsComplexString:oldValue]) {
         [self recordChangingField:field toValue:value];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to