Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing system setting for profile photo media source #16515

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

smg6511
Copy link
Collaborator

@smg6511 smg6511 commented Jan 19, 2024

What does it do?

Adds a long-missing setting for specifying user's profile photo media source. Also, moves up (and tweaks) the associated Lexicon entries.

Why is it needed?

The logic has been present in the backend to specify a Media Source other that the default for user profile photos since they were introduced nearly 10 years ago. However, the system setting was never added to the build, making it virtually unknown that this functionality existed.

How to test

Run _build/transport.core.php to install the new setting. Then search for photo_profile_source in the system settings, change its value, and verify that the Media Source shown in the Media Browser (when editing/adding a user profile photo) matches that which you specified in the setting.

Related issue(s)/PR(s)

Resolves #16510

Adds a long-missing setting for specifying user's profile photo media source
@smg6511 smg6511 added the pr/review-needed Pull request requires review and testing. label Jan 19, 2024
@smg6511 smg6511 added this to the v3.0.5 milestone Jan 19, 2024
@smg6511 smg6511 added pr/ready-for-merging Pull request reviewed and tested and ready for merging. and removed pr/review-needed Pull request requires review and testing. labels Mar 22, 2024
Copy link
Member

@theboxer theboxer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@opengeek opengeek merged commit b459625 into modxcms:3.x Mar 25, 2024
7 checks passed
opengeek pushed a commit that referenced this pull request Mar 25, 2024
### What does it do?
Adds a long-missing setting for specifying user's profile photo media
source. Also, moves up (and tweaks) the associated Lexicon entries.

### Why is it needed?
The logic has been present in the backend to specify a Media Source
other that the default for user profile photos since they were
introduced nearly 10 years ago. However, the system setting was never
added to the build, making it virtually unknown that this functionality
existed.

### How to test
Run `_build/transport.core.php` to install the new setting. Then search
for `photo_profile_source` in the system settings, change its value, and
verify that the Media Source shown in the Media Browser (when
editing/adding a user profile photo) matches that which you specified in
the setting.

### Related issue(s)/PR(s)
Resolves #16510
@smg6511 smg6511 deleted the 3.x-issue-16510 branch March 30, 2024 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/ready-for-merging Pull request reviewed and tested and ready for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Media Browser doesn't display popup to select a media source for user profile photos in MODX 3.0
4 participants