Fix search breakage

This commit is contained in:
Tim Bentley 2016-01-05 18:19:40 +00:00
parent 4e1470dfd1
commit 3975901e11
3 changed files with 3 additions and 3 deletions

View File

@ -960,7 +960,7 @@ class BibleMediaItem(MediaManagerItem):
search_results = self.plugin.manager.get_verses(bible, string, False, showError)
if search_results:
verse_text = ' '.join([verse.text for verse in search_results])
return [[string, verse_text]]
return [[string, verse_text, ""]]
return []
def create_item_from_id(self, item_id):

View File

@ -701,7 +701,7 @@ class ImageMediaItem(MediaManagerItem):
results = []
for file_object in files:
filename = os.path.split(str(file_object.filename))[1]
results.append([file_object.filename, filename])
results.append([file_object.filename, filename, ""])
return results
def create_item_from_id(self, item_id):

View File

@ -272,7 +272,7 @@ window.OpenLP = {
value[0] = OpenLP.escapeString(value[0])
}
var txt = "";
if (value[2].length > 0) {
if (value.length > 2 && value[2].length > 0) {
txt = value[1] + " ( " + value[2] + " )";
} else {
txt = value[1];