Bug 7178 follow-up: Do not fill items table with "(undefined)"

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Julian Maurice 2012-05-22 10:47:01 +02:00 committed by Chris Cormack
parent 2c27c86b35
commit dd231b0ca7
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ function constructTrNode(index, unique_item_fields) {
} else {
field_value = $(field_elt).val();
}
if (field_value == undefined) {
field_value = '';
}
result += "<td>" + field_value + "</td>";
}
result += "</tr>";