瀏覽代碼

Merge branch 'nztqa-fix-filterreset' into devel

Fix filter reset on moving between starred boards. Thanks to nztqa !
Lauri Ojansivu 8 年之前
父節點
當前提交
59b8d35386
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 1
      CHANGELOG.md
  2. 1 0
      config/router.js

+ 2 - 1
CHANGELOG.md

@@ -15,7 +15,8 @@ and fixes the following bugs:
 * [Fix Export Wekan board](https://github.com/wekan/wekan/pull/1067);
 * [Fix "W" shortcut binding](https://github.com/wekan/wekan/pull/1066);
 * [Fix login url in invitation email](https://github.com/wekan/wekan/issues/993);
-* [Edit card description with invalid markdown](https://github.com/wekan/wekan/pull/1073).
+* [Edit card description with invalid markdown](https://github.com/wekan/wekan/pull/1073);
+* [Fix filter reset on moving between starred boards](https://github.com/wekan/wekan/pull/1074).
 
 Thanks to GitHub users BaobabCoder, GhassenRjab, nebulade, nztqa and xet7
 for their contributions.

+ 1 - 0
config/router.js

@@ -31,6 +31,7 @@ FlowRouter.route('/b/:id/:slug', {
     // If we close a card, we'll execute again this route action but we don't
     // want to excape every current actions (filters, etc.)
     if (previousBoard !== currentBoard) {
+      Filter.reset();
       EscapeActions.executeAll();
     } else {
       EscapeActions.executeUpTo('popup-close');