incident assigned to should not revert. fixes #1652.
authorSteve Hackbarth <stephenhackbarth@gmail.com>
Thu, 10 Jul 2014 19:15:05 +0000 (19:15 +0000)
committerSteve Hackbarth <stephenhackbarth@gmail.com>
Thu, 10 Jul 2014 19:15:05 +0000 (19:15 +0000)
enyo-client/application/source/models/incident.js

index df7bc72..77d5e7f 100644 (file)
@@ -161,7 +161,7 @@ white:true*/
     },
 
     assignedToDidChange: function (model, value, options) {
-      if (value) {
+      if (value && this.get("status") !== XM.Incident.RESOLVED && this.get("status") !== XM.Incident.CLOSED) {
         this.set('status', XM.Incident.ASSIGNED);
       }
     },