Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Feb 3, 2025

Backport of #50592

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Remove all the empty commits

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot requested review from artonge, nfebe and szaimen February 3, 2025 16:06
@backportbot backportbot bot added 3. to review Waiting for reviews feature: search labels Feb 3, 2025
@backportbot backportbot bot added this to the Nextcloud 31 milestone Feb 3, 2025
@nfebe nfebe marked this pull request as ready for review February 3, 2025 16:26
@nfebe
Copy link
Contributor

nfebe commented Feb 3, 2025

/compile amend

The main providers come from both the backend and client side plugins such as `in-folder` search.
The main providers may carry callbacks functions and other information that should be passed to the `filteredProviders`.
This is important because the current code does not make a distinction between `filteredProviders` and `providers`
rightly so, becuase they are the same thing!

Without the mentioned distinction above, sooner or later, we try to access a property on the `filteredProviders` which we
did not transfer with the manual property copy.

----

This fix prevents in-folder search from searching everywhere when "load more results" is clicked; Essentially ignoring the in-folder
search filter.

Signed-off-by: nfebe <[email protected]>
@AndyScherzinger AndyScherzinger force-pushed the backport/50592/stable31 branch from 8ff2a32 to c98e9c0 Compare February 3, 2025 18:19
@AndyScherzinger
Copy link
Member

/compile amend

Signed-off-by: nextcloud-command <[email protected]>
@nfebe
Copy link
Contributor

nfebe commented Feb 3, 2025

Hello @AndyScherzinger 😄

EDIT :

Didn't notice you where already here with the "compile amend" sorry for the extra ping and thanks!

@AndyScherzinger AndyScherzinger merged commit 18f8f61 into stable31 Feb 3, 2025
117 of 118 checks passed
@AndyScherzinger AndyScherzinger deleted the backport/50592/stable31 branch February 3, 2025 19:44
@AndyScherzinger
Copy link
Member

@nfebe just wanted to help out 😊

Merged 👍

@Altahrim Altahrim mentioned this pull request Feb 5, 2025
1 task
@blizzz blizzz mentioned this pull request Mar 12, 2025
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants