diff options
author | Andreas Åkre Solberg <andreas.solberg@uninett.no> | 2011-10-28 07:52:41 +0000 |
---|---|---|
committer | Andreas Åkre Solberg <andreas.solberg@uninett.no> | 2011-10-28 07:52:41 +0000 |
commit | 0b854969a359a00cec0c009e25cc0e830cb4d08c (patch) | |
tree | a3d153c110f5cff503edc221d668b425addbdf18 | |
parent | f1b0801e19db4badddc0fb0f4a77ffcedf457d6e (diff) | |
download | simplesamlphp-0b854969a359a00cec0c009e25cc0e830cb4d08c.zip simplesamlphp-0b854969a359a00cec0c009e25cc0e830cb4d08c.tar.gz simplesamlphp-0b854969a359a00cec0c009e25cc0e830cb4d08c.tar.bz2 |
Skipping entries without title
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2960 44740490-163a-0410-bde0-09ae8108e29a
-rw-r--r-- | modules/discojuice/www/discojuice/discojuice.control.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/discojuice/www/discojuice/discojuice.control.js b/modules/discojuice/www/discojuice/discojuice.control.js index 12f585f..699453a 100644 --- a/modules/discojuice/www/discojuice/discojuice.control.js +++ b/modules/discojuice/www/discojuice/discojuice.control.js @@ -475,6 +475,11 @@ DiscoJuice.Control = { current = this.data[i]; if (!current.weight) current.weight = 0; + if (!current.title) { + console.log('No title for this entry [' + current.entityID + (current.relID) + '] skipping.'); + continue; + } + if (term) { search = this.parent.Utils.searchMatch(current,term); // if (search === false && current.weight > -50) continue; |