fix(addressbook(js)): handle multi-values organization field (c_o)

Fixes #5312
This commit is contained in:
Francis Lachapelle committed 2021-05-12 15:54:09 -04:00
1 parent 61e15eab23
commit 69b86d3f93
1 file changed
+3 -1
+3 -1
View File
@@ -95,8 +95,10 @@ function contactsListCallback(http) {
else
$(cells[2]).update();
if (contact["c_o"])
if (contact["c_o"] && typeof(contact["c_o"]) == "string")
$(cells[3]).update(contact["c_o"].escapeHTML());
else if (contact["c_o"] && typeof(contact["c_o"]) == "object")
$(cells[3]).update(contact["c_o"].join(', ').escapeHTML());
else
$(cells[3]).update();