Ticket.bjs
[gitlive] / Ticket.vala
index a3f337f..4c28919 100644 (file)
@@ -1163,14 +1163,20 @@ public class Ticket : Object
                GLib.debug("fire response = 1");
                
                
-               var invalid = true;
+               var invalid = false;
                
                // validate first...
-               this.el.get_style_context().add_class("suggested-action");
-               
+               _this.project_id.el.get_style_context().remove_class("warning");        
+               if (_this.project_id.getProjectId() == "") {
+                       _this.project_id.el.get_style_context().add_class("warning");
+                       invalid = true;
+               }
                
                
                
+               if (invalid) {
+                       return;
+               }
                
                _this.el.response(1);
             });