Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions keepercommander/commands/record_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,11 @@ def assign_typed_fields(self, record, fields):
(x for x in record.fields
if (not parsed_field.type or x.type == parsed_field.type) and
(ignore_label or (x.label or '').lower() == f_label)), None)
# When label is omitted (e.g. "url=value") and there is a single field of this type, use it
if not record_field and not f_label and field_type and rf and rf.multiple != record_types.Multiple.Always:
candidates = [x for x in record.fields if x.type == field_type]
if len(candidates) == 1:
record_field = candidates[0]
if record_field:
is_field = True
else:
Expand Down