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:
In a Screen some filters inside a Selection.
One of these filter is Gender filter which has options([ 0 => 'male', 1 => 'female', ])
Add a Button test_button to the Screen. The Button calls some_method and passes request()->all() as a parameter (see screenshot)
Filter the data in the screen by selecting 'male' in the gender filter
Click on the test_button
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
Desktop (please complete the following information):
OS: Windows 11
Browser: chrome
Version: 122.0.6261.113
Server (please complete the following information):
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:
options([ 0 => 'male', 1 => 'female', ])
test_button
to the Screen. The Button callssome_method
and passes request()->all() as a parameter (see screenshot)test_button
some_method
print the received RequestExpected 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](https://github.com/orchidsoftware/platform/assets/20727134/c89c8f04-01f9-4403-b0ed-d9e7b5e7c9b6)
Desktop (please complete the following information):
Server (please complete the following information):