From 6d1a123eaed3450ae15aa8f7f2ba143340e1bbaa Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Sat, 1 Jan 2011 21:43:14 +0100 Subject: [PATCH] fix bug in renderMailto function --- scm-webapp/src/main/webapp/resources/js/sonia.rest.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.rest.js b/scm-webapp/src/main/webapp/resources/js/sonia.rest.js index a9e280663e..b0afc0d3b3 100644 --- a/scm-webapp/src/main/webapp/resources/js/sonia.rest.js +++ b/scm-webapp/src/main/webapp/resources/js/sonia.rest.js @@ -134,7 +134,11 @@ Sonia.rest.Grid = Ext.extend(Ext.grid.GridPanel, { }, renderMailto: function(mail){ - return String.format( this.mailtoTemplate, mail ); + var result = ''; + if ( mail != null ){ + result = String.format( this.mailtoTemplate, mail ); + } + return result; }, renderCheckbox: function(value){