Skip to content

Comments

[FIX] Adding Custom Fields to show on user info check#20955

Merged
ggazzo merged 11 commits intoRocketChat:developfrom
yash-rajpal:fix-custom-fields-userInfo
May 12, 2021
Merged

[FIX] Adding Custom Fields to show on user info check#20955
ggazzo merged 11 commits intoRocketChat:developfrom
yash-rajpal:fix-custom-fields-userInfo

Conversation

@yash-rajpal
Copy link
Member

@yash-rajpal yash-rajpal commented Mar 1, 2021

  • I have read the Contributing Guide
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Proposed changes (including videos or screenshots)

The setting custom fields to show under user info was not being used when rendering fields in user info. This pr adds those checks and only renders the fields mentioned under in admin -> accounts -> Custom Fields to Show in User Info.

Issue(s)

Custom Fields to Show in User Info was not being used
#18953

Steps to test or reproduce

Further comments

fix-custom-fields-user-info

@yash-rajpal
Copy link
Member Author

@dougfabris Please review. :)

Added try catch block in case user enters wrong json, json.parse can return error.

@yash-rajpal
Copy link
Member Author

@ggazzo Please review.

@yash-rajpal yash-rajpal force-pushed the fix-custom-fields-userInfo branch from c9c5188 to fb6c4c0 Compare May 11, 2021 12:16
@yash-rajpal yash-rajpal requested a review from dougfabris May 11, 2021 12:27
@lgtm-com
Copy link

lgtm-com bot commented May 11, 2021

This pull request introduces 1 alert when merging 4fecad5 into 82243ad - view on LGTM.com

new alerts:

  • 1 for Unneeded defensive code

@tassoevan tassoevan requested review from tassoevan and removed request for ggazzo May 11, 2021 16:54
@yash-rajpal yash-rajpal requested a review from tassoevan May 11, 2021 17:26
@yash-rajpal yash-rajpal requested a review from ggazzo May 12, 2021 07:30
@ggazzo ggazzo changed the title Adding Custom Fields to show on user info check [FIX] Adding Custom Fields to show on user info check May 12, 2021
@ggazzo ggazzo merged commit 90cb5e4 into RocketChat:develop May 12, 2021
@sampaiodiego sampaiodiego mentioned this pull request May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 'Custom Fields to Show in User Info' is broken since version 3.6.0

4 participants