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

Parameter is not being passed to Screen's method #2818

Closed
AbdelmageedIsmail opened this issue Mar 24, 2024 · 2 comments
Closed

Parameter is not being passed to Screen's method #2818

AbdelmageedIsmail opened this issue Mar 24, 2024 · 2 comments
Assignees
Labels

Comments

@AbdelmageedIsmail
Copy link

Describe the bug
Filter parameter is not being passed to Screen's method when its value is 0

To Reproduce
Steps to reproduce the behavior:

  1. In a Screen some filters inside a Selection.
  2. One of these filter is Gender filter which has options([ 0 => 'male', 1 => 'female', ])
  3. Add a Button test_button to the Screen. The Button calls some_method and passes request()->all() as a parameter (see screenshot)
  4. Filter the data in the screen by selecting 'male' in the gender filter
  5. Click on the test_button
  6. In the some_method print the received Request

Expected behavior
When the Button clicked, gender=0 should show up in the url and "gender" => 0 in the query section of the request object received in the method.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: chrome
  • Version: 122.0.6261.113

Server (please complete the following information):

  • Platfrom Version: 14.18.0
  • Laravel Version: 10.41.0
  • PHP Version: 8.1.0
  • Database: MySql
  • Database Version: 8.2.0
@tabuna
Copy link
Member

tabuna commented Mar 24, 2024

Should be resolved as of version https://github.com/orchidsoftware/platform/releases/tag/14.21.1

@tabuna tabuna closed this as completed Mar 24, 2024
@AbdelmageedIsmail
Copy link
Author

Confirmed, Than you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants