From 00c73d53c71fd0f6ad5ef83bae1dea79a49508e4 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 8 Nov 2017 17:41:47 +0100 Subject: [PATCH] Phone and email information is in the person table --- bin/domain/imag-contact/src/create.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/domain/imag-contact/src/create.rs b/bin/domain/imag-contact/src/create.rs index 7ef728a4..d481b802 100644 --- a/bin/domain/imag-contact/src/create.rs +++ b/bin/domain/imag-contact/src/create.rs @@ -258,7 +258,7 @@ fn parse_toml_into_vcard(toml: Value) -> Option { { // parse phone debug!("Parse phone"); - match toml.read("phone").map_err_trace_exit_unwrap(1) { + match toml.read("person.phone").map_err_trace_exit_unwrap(1) { Some(&Value::Array(ref ary)) => { for (i, element) in ary.iter().enumerate() { let phonetype = match read_str_from_toml(element, "type") { @@ -343,7 +343,7 @@ fn parse_toml_into_vcard(toml: Value) -> Option { { // parse email debug!("Parsing email"); - match toml.read("email").map_err_trace_exit_unwrap(1) { + match toml.read("person.email").map_err_trace_exit_unwrap(1) { Some(&Value::Array(ref ary)) => { for (i, element) in ary.iter().enumerate() { let mailtype = match read_str_from_toml(element, "type") {