Browse Source

Fix in unsaved changes service

Torkel Ödegaard 10 years ago
parent
commit
2c3aad785d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/features/dashboard/unsavedChangesSrv.js

+ 1 - 1
public/app/features/dashboard/unsavedChangesSrv.js

@@ -51,7 +51,7 @@ function(angular, _) {
     // for some dashboards and users
     // for some dashboards and users
     // changes should be ignored
     // changes should be ignored
     p.ignoreChanges = function() {
     p.ignoreChanges = function() {
-      if (!this.original) { return false; }
+      if (!this.original) { return true; }
       if (!contextSrv.isEditor) { return true; }
       if (!contextSrv.isEditor) { return true; }
       if (!this.current || !this.current.meta) { return true; }
       if (!this.current || !this.current.meta) { return true; }