mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-30 17:29:37 +00:00
fix(addressbook(js)): handle multi-values organization field (c_o)
Fixes #5312
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user