import notes for form fills

This commit is contained in:
Kyle Spearrin 2017-11-30 23:45:06 -05:00
parent b78ab4db27
commit 2997f694f8
1 changed files with 3 additions and 0 deletions

View File

@ -743,6 +743,7 @@
}
else if (cipher.type === constants.cipherType.card) {
cipher.card = parseCard(value);
cipher.notes = value.notes && value.notes !== '' ? value.notes : null;
}
else if (cipher.type === constants.cipherType.identity) {
cipher.identity = {
@ -764,6 +765,8 @@
phone: value.phone && value.phone !== '' ? value.phone : null
};
cipher.notes = value.notes && value.notes !== '' ? value.notes : null;
if (cipher.identity.title) {
cipher.identity.title = cipher.identity.title.charAt(0).toUpperCase() +
cipher.identity.title.slice(1);