forked from openlp/openlp
Fix search breakage
This commit is contained in:
parent
4e1470dfd1
commit
3975901e11
@ -960,7 +960,7 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
search_results = self.plugin.manager.get_verses(bible, string, False, showError)
|
search_results = self.plugin.manager.get_verses(bible, string, False, showError)
|
||||||
if search_results:
|
if search_results:
|
||||||
verse_text = ' '.join([verse.text for verse in search_results])
|
verse_text = ' '.join([verse.text for verse in search_results])
|
||||||
return [[string, verse_text]]
|
return [[string, verse_text, ""]]
|
||||||
return []
|
return []
|
||||||
|
|
||||||
def create_item_from_id(self, item_id):
|
def create_item_from_id(self, item_id):
|
||||||
|
@ -701,7 +701,7 @@ class ImageMediaItem(MediaManagerItem):
|
|||||||
results = []
|
results = []
|
||||||
for file_object in files:
|
for file_object in files:
|
||||||
filename = os.path.split(str(file_object.filename))[1]
|
filename = os.path.split(str(file_object.filename))[1]
|
||||||
results.append([file_object.filename, filename])
|
results.append([file_object.filename, filename, ""])
|
||||||
return results
|
return results
|
||||||
|
|
||||||
def create_item_from_id(self, item_id):
|
def create_item_from_id(self, item_id):
|
||||||
|
@ -272,7 +272,7 @@ window.OpenLP = {
|
|||||||
value[0] = OpenLP.escapeString(value[0])
|
value[0] = OpenLP.escapeString(value[0])
|
||||||
}
|
}
|
||||||
var txt = "";
|
var txt = "";
|
||||||
if (value[2].length > 0) {
|
if (value.length > 2 && value[2].length > 0) {
|
||||||
txt = value[1] + " ( " + value[2] + " )";
|
txt = value[1] + " ( " + value[2] + " )";
|
||||||
} else {
|
} else {
|
||||||
txt = value[1];
|
txt = value[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user