Empty keys for custom fields are handled correctly
This commit is contained in:
michael starke
2013-07-27 22:24:19 +02:00
parent 5378410937
commit 7ffcc0e43e

View File

@@ -11,9 +11,11 @@
@implementation Kdb4Entry (MPAdditions)
- (NSString *)uniqueKeyForProposal:(NSString *)key {
/*
FIXME: Introduce some cachin behaviour. We iterate over after every single edit
*/
if(key == nil) {
key = NSLocalizedString(@"DEFAULT_CUSTOM_FIELD_TITLE", @"Default Titel for new Custom-Fields");
}
NSArray *defaultKeys = @[ FIELD_TITLE,
FIELD_USER_NAME,
FIELD_PASSWORD,