I'm fairly sure I fixed that already, but here we go again. It's totally valid to only have an email address for the submitter, so handle that case properly.
Signed-off-by: Damien Lespiau <damien.lesp...@intel.com> --- patchwork/templates/patchwork/filters.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/patchwork/templates/patchwork/filters.html b/patchwork/templates/patchwork/filters.html index fe0c9b8..65fd6bf 100644 --- a/patchwork/templates/patchwork/filters.html +++ b/patchwork/templates/patchwork/filters.html @@ -54,11 +54,15 @@ $(document).ready(function() { }, render: { option: function(item, escape) { - return '<div>' + escape(item.name) + ' <' + - escape(item.email) + '>' + '</div>'; + if (item.name) + return '<div>' + escape(item.name) + ' <' + + escape(item.email) + '>' + '</div>'; + return '<div>' + escape(item.email) + '</div>'; }, item: function(item, escape) { - return '<div>' + escape(item.name) + '</div>'; + if (item.name) + return '<div>' + escape(item.name) + '</div>'; + return '<div>' + escape(item.email) + '</div>'; } }, load: function(query, callback) { -- 2.1.0 _______________________________________________ Patchwork mailing list Patchwork@lists.ozlabs.org https://lists.ozlabs.org/listinfo/patchwork