Commit a2632a72 authored by Navneet Singh's avatar Navneet Singh Committed by Nejc Koporec
Browse files

Issue #3324951 by navneet0693: Unpublished Profile Tags are available for...

Issue #3324951 by navneet0693: Unpublished Profile Tags are available for selection in Profile form.

The tag field in the profile uses profile_tags vocabulary.

The terms on profile entity are fetched by https://github.com/goalgorilla/open_social/blob/main/modules/social_features/social_profile/src/SocialProfileTagService.php in functions https://github.com/goalgorilla/open_social/blob/main/modules/social_features/social_profile/src/SocialProfileTagService.php#L87 and https://github.com/goalgorilla/open_social/blob/main/modules/social_features/social_profile/src/SocialProfileTagService.php#L118

These functions internally call the function https://github.com/goalgorilla/open_social/blob/main/modules/social_features/social_profile/src/SocialProfileTagService.php#L222 which was not checking if the term is published or not.

This check is added in original class here: https://github.com/goalgorilla/open_social/blob/main/modules/social_features/social_tagging/src/SocialTaggingService.php#L291

So, we added the checks in SocialProfileTagService class as well.
parent ec3e05ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment