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

Fixes #5312
maint^2
Francis Lachapelle 2021-05-12 15:54:09 -04:00
parent 61e15eab23
commit 69b86d3f93
1 changed files with 3 additions and 1 deletions

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();