From 1d2415808dd4e2f348d99b7340ad9655e6e1b384 Mon Sep 17 00:00:00 2001 From: Simon Scudder Date: Thu, 16 Jun 2011 15:11:49 -0300 Subject: [PATCH] Fixed Bug 707605 - Losing song book number on OpenLyrics import --- openlp/plugins/songs/lib/xml.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openlp/plugins/songs/lib/xml.py b/openlp/plugins/songs/lib/xml.py index f5ec28103..b3999f512 100644 --- a/openlp/plugins/songs/lib/xml.py +++ b/openlp/plugins/songs/lib/xml.py @@ -527,8 +527,7 @@ class OpenLyrics(object): book = Book.populate(name=bookname, publisher=u'') self.manager.save_object(book) song.song_book_id = book.id - if hasattr(songbook, u'entry'): - song.song_number = self._get(songbook, u'entry') + song.song_number = self._get(songbook, u'entry') # We only support one song book, so take the first one. break