Commit 6d095f1c authored by Romain Loth's avatar Romain Loth

Add exception to abstract search when there is no defined abstract :/

parent 82663596
......@@ -474,7 +474,9 @@ function Main_test( Data , SearchFilter ) {
// if box is checked we'll also search in the abstracts
if ($("#searchAB").is(':checked')) {
matchInTexts.push(record.hyperdata.abstract)
if (typeof record.hyperdata.abstract !== 'undefined') {
matchInTexts.push(record.hyperdata.abstract)
}
}
// inspired from the default cf. dynatable.queries.functions['search']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment