diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-04-28 23:53:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 23:53:24 +0300 |
commit | 4c3907bd419db829c4c6c3d5704c24277e3b7b6e (patch) | |
tree | d8a9bb4262152643875fe59d647e58337a3dab9a | |
parent | 3d5abd60ccf3e0884a0346ec4a559ff5aa484b51 (diff) | |
parent | 153d729544fb5bbfa5fa40d236303cbc01352334 (diff) | |
download | wekan-4c3907bd419db829c4c6c3d5704c24277e3b7b6e.tar.gz wekan-4c3907bd419db829c4c6c3d5704c24277e3b7b6e.tar.bz2 wekan-4c3907bd419db829c4c6c3d5704c24277e3b7b6e.zip |
Merge pull request #3061 from marc1006/fix
Fix getStartDayOfWeek once again :)
-rw-r--r-- | models/users.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/models/users.js b/models/users.js index 2d84141c..a1bc5b0f 100644 --- a/models/users.js +++ b/models/users.js @@ -530,8 +530,11 @@ Users.helpers({ getStartDayOfWeek() { const profile = this.profile || {}; - // default is 'Monday' (1) - return profile.startDayOfWeek || 1; + if (typeof profile.startDayOfWeek === 'undefined') { + // default is 'Monday' (1) + return 1; + } + return profile.startDayOfWeek; }, getTemplatesBoardId() { |