Feature/open advanced search with link#20
Merged
Conversation
…ly you can't open the edit modal over the parameter)
…ced-search-with-link
JonasGoseberg
approved these changes
Oct 8, 2025
| filterSection.classList.remove('hide'); | ||
|
|
||
| @if(!empty($predefined_filter_edit_modal_open) && $predefined_filter_edit_modal_open == true) | ||
| sleep(200).then(() => { // I know that this is bad practice but I havn't found another way that works :-( |
There was a problem hiding this comment.
TODO check later if we found another way together (sleep)
|
|
||
| // Validate if it's a valid integer | ||
| if (filter_var($predefined_filter_id, FILTER_VALIDATE_INT) === false && $predefined_filter_id != null) { | ||
| throw new InvalidArgumentException('You provided an invalid parameter for predefinedFilterId (must be an integer).'); |
| } | ||
|
|
||
| if ($predefined_filter_edit_modal_open !== 'true' && $predefined_filter_edit_modal_open !== 'false' && $predefined_filter_edit_modal_open != null) { | ||
| throw new InvalidArgumentException("You provided an invalid parameter for predefinedFilterModalOpen (must be true or false)."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The predefined filter id can bet through the url.
http://localhost:8082/hardware?order=desc&page=1&search=&size=20&sort=created_at&predefinedFilterId=<predefinedFilterId>&predefinedFilterEditModalOpen=<true or false>