Explorar o código

Revert list sorting change of Wekan v3.51 because it reversed
alphabetical sorting of lists.

Thanks to Dalisay and xet7 !

Lauri Ojansivu %!s(int64=5) %!d(string=hai) anos
pai
achega
ab2a721a14
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      models/users.js

+ 2 - 2
models/users.js

@@ -396,8 +396,8 @@ Users.helpers({
     return ret;
   },
   hasSortBy() {
-    // if user has dragHandle, then we can let user to choose sort list by different order
-    return this.hasShowDesktopDragHandles();
+    // if use doesn't have dragHandle, then we can let user to choose sort list by different order
+    return !this.hasShowDesktopDragHandles();
   },
   getListSortBy() {
     return this._getListSortBy()[0];