orchidsoftware / platform

Orchid is a @laravel package that allows for rapid application development of back-office applications, admin/user panels, and dashboards.
https://orchid.software
MIT License
4.26k stars 631 forks source link

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

Closed AbdelmageedIsmail closed 3 months ago

AbdelmageedIsmail commented 3 months ago

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):

Server (please complete the following information):

tabuna commented 3 months ago

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

AbdelmageedIsmail commented 3 months ago

Confirmed, Than you so much