<% if @issue.valid? %>
	$('#watchersheading').remove();
  $('#autowatchers').html('<%= escape_javascript(render :partial => 'watchers/auto_watchers', :locals => {:watched => @issue}) %>');
<% else %>
  alert('<%= raw(escape_javascript(l(:notice_failed_to_load_watchers, :errors => @issue.errors.full_messages.join(', ')))) %>');
<% end %>
<% if !@issue.nil? %>
	$('#watchersheading').remove();
  $('#autowatchers').html('<%= escape_javascript(render :partial => 'watchers/auto_watchers', :locals => {:watched => @issue}) %>');
<% else %>
  alert('<%= raw(escape_javascript(l(:notice_failed_to_load_watchers, :errors => @issue.errors.full_messages.join(', ')))) %>');
<% end %>
Check for nil, Instead of validation to show preview list of watchers.
Check for nil, Instead of validation to show preview list of watchers.
