diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb
index cf771a700..67bb4d59d 100644
--- a/app/views/issues/show.html.erb
+++ b/app/views/issues/show.html.erb
@@ -9,7 +9,8 @@
$(function(){
$("#RSide").removeAttr("id");
$("#Container").css("width","1000px");
- if(true == <%= @is_edit %>) {
+ is_edit = <%= @is_edit.present? && @is_edit == true %>
+ if(is_edit) {
issueEditShow();
}
});