Browse Source

Fix: Invitation /sign-up page did not show input for invitation code. Thanks to xet7 !

Lauri Ojansivu 7 years ago
parent
commit
99be745f02
2 changed files with 3 additions and 2 deletions
  1. 2 1
      CHANGELOG.md
  2. 1 1
      client/components/settings/invitationCode.js

+ 2 - 1
CHANGELOG.md

@@ -12,7 +12,8 @@ and fixes the following bugs:
 * [Codeblocks should not be scanned for emoji](https://github.com/wekan/wekan/issues/643);
 * [Codeblocks should not be scanned for emoji](https://github.com/wekan/wekan/issues/643);
 * [Whitespace trimming breaks Markdown code block indentation](https://github.com/wekan/wekan/issues/1288):
 * [Whitespace trimming breaks Markdown code block indentation](https://github.com/wekan/wekan/issues/1288):
 * [Helper to list boards for user](https://github.com/wekan/wekan/pull/1327);
 * [Helper to list boards for user](https://github.com/wekan/wekan/pull/1327);
-* [Error after sending invitation and joining board: Exception while invoking method 'login' TypeError: Cannot read property 'loginDisabled' of undefined](https://github.com/wekan/wekan/issues/1331).
+* [Error after sending invitation and joining board: Exception while invoking method 'login' TypeError: Cannot read property 'loginDisabled' of undefined](https://github.com/wekan/wekan/issues/1331);
+* Invitation /sign-up page did not show input for invitation code.
 
 
 Thanks to Github users brooksbecton, milesibastos, nztqa, soohwa, thuanpq and xet7 for their contributions.
 Thanks to Github users brooksbecton, milesibastos, nztqa, soohwa, thuanpq and xet7 for their contributions.
 
 

+ 1 - 1
client/components/settings/invitationCode.js

@@ -1,6 +1,6 @@
 Template.invitationCode.onRendered(() => {
 Template.invitationCode.onRendered(() => {
   const setting = Settings.findOne();
   const setting = Settings.findOne();
-  if (!setting || !setting.disableRegistration) {
+  if (setting || setting.disableRegistration) {
     $('#invitationcode').hide();
     $('#invitationcode').hide();
   }
   }
 });
 });