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

Overwriting title to null displays value 1 #2864

Open
pLavrenov opened this issue Jul 24, 2024 · 1 comment
Open

Overwriting title to null displays value 1 #2864

pLavrenov opened this issue Jul 24, 2024 · 1 comment
Assignees
Labels
Errors Pending Awaiting author response

Comments

@pLavrenov
Copy link

pLavrenov commented Jul 24, 2024

Overwriting title to null displays value 1

Describe the bug
When the value of ->title() is overwritten to null in the form, the value 1 is displayed on the page because it passes the isset() check, and the value of $field->get('title') equals true.

To Reproduce

$field = Input::make()->title('Test')->title(null);
dd($field->get('title') === true);
@tabuna tabuna changed the title При перезаписи title на null выводится значение 1 Overwriting title to null displays value 1 Jul 25, 2024
@tabuna
Copy link
Member

tabuna commented Jul 25, 2024

Since you did not specify which version of the package you are using, I will assume it is the latest available. I am unable to reproduce your example; you can see that I have added it to the tests, and the results can be viewed on the tab at https://github.com/orchidsoftware/platform/actions.

If you are using an older version, I recommend updating to the latest one.

@tabuna tabuna added the Pending Awaiting author response label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Errors Pending Awaiting author response
Development

No branches or pull requests

2 participants