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

[ticket/17151] Make settings forms use macros #6533

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

rxu
Copy link
Contributor

@rxu rxu commented Sep 18, 2023

PHPBB3-17151

Checklist:

  • Correct branch: master for new features; 3.3.x for fixes
  • Tests pass
  • Code follows coding guidelines: master and 3.3.x
  • Commit follows commit message format

Tracker ticket:

https://tracker.phpbb.com/browse/PHPBB3-17151

@rxu rxu force-pushed the ticket/17151-2 branch 7 times, most recently from 96dfeca to 10cd704 Compare September 20, 2023 13:21
@rxu rxu marked this pull request as ready for review September 21, 2023 08:03
phpBB/includes/functions_acp.php Show resolved Hide resolved
tests/functional/fixtures/ext/foo/bar/acp/main_module.php Outdated Show resolved Hide resolved
phpBB/includes/functions_acp.php Outdated Show resolved Hide resolved
@rxu rxu marked this pull request as draft September 22, 2023 17:45
@rxu rxu force-pushed the ticket/17151-2 branch 7 times, most recently from f4081f0 to 44eaab9 Compare September 23, 2023 17:59
- allow more than 2 buttons count
- allow custom buttons order
- allow custom button labels

Implemented by allowing JSON data format, backward compatibility preserved.

PHPBB3-17151
@rxu rxu force-pushed the ticket/17151-2 branch 2 times, most recently from 3565d80 to c3bc6a3 Compare September 23, 2023 18:37
@rxu rxu marked this pull request as ready for review September 25, 2023 00:45
@Derky
Copy link
Member

Derky commented Oct 1, 2023

Thanks for updating the PR! I've also asked @marc1706 to take a look at the radio options to see if it's aligned with his recent changes to form elements.

I've been testing this PR around a bit and the board settings page is working again now, but I noticed there are no selected="selected" attributes on both the "Default style" as "Guest style". So this causes the first option in the selectbox to show as selected. (So if you select a different style, it doesn't show that as selected next time you return to the page)

@rxu
Copy link
Contributor Author

rxu commented Oct 2, 2023

there are no selected="selected" attributes on both the "Default style" as "Guest style".

At what page?

EDIT: okay, I see the cause. Will be fixed in next commits.

@rxu
Copy link
Contributor Author

rxu commented Oct 2, 2023

@Derky Probably fixed "selected" issue, could you please retest it again.

phpBB/includes/functions_acp.php Outdated Show resolved Hide resolved
phpBB/includes/ucp/ucp_prefs.php Outdated Show resolved Hide resolved
phpBB/includes/ucp/ucp_prefs.php Outdated Show resolved Hide resolved
phpBB/includes/acp/acp_board.php Outdated Show resolved Hide resolved
phpBB/includes/functions_acp.php Outdated Show resolved Hide resolved
@Derky
Copy link
Member

Derky commented Oct 2, 2023

@Derky Probably fixed "selected" issue, could you please retest it again.

Yes this was fixed, thanks!

@rxu rxu force-pushed the ticket/17151-2 branch 4 times, most recently from dd23e05 to 372b5f7 Compare October 3, 2023 05:28
@rxu
Copy link
Contributor Author

rxu commented Oct 3, 2023

@marc1706 Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants