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

#4360 #4384 fixing multiple regressions with path civicrm/contact/search #26669

Merged
merged 3 commits into from
Jul 4, 2023

Conversation

samuelsov
Copy link
Contributor

Overview

Issue dev/core#4360 dev/core#4384

Before

  • issues when accessing search contact/search with qfKey
  • crash when doing advanced search

After

Use the legacy search in most context except when using the menu

Technical Details

Using alternate path civicrm/adminui/contact/search for SearchKit/Formbuilder version

@civibot civibot bot added the master label Jun 26, 2023
@civibot
Copy link

civibot bot commented Jun 26, 2023

(Standard links)

@larssandergreen
Copy link
Contributor

Confirmed, all three issues are fixed. Looks reasonable to me.

@larssandergreen
Copy link
Contributor

I spoke too soon: If you disable AdminUI with this patch, Find Contacts disappears from the Search menu. It's still accessible by URL, but the menu item is gone (and even rebuilding the menu doesn't bring it back).

@samuelsov
Copy link
Contributor Author

I spoke too soon: If you disable AdminUI with this patch, Find Contacts disappears from the Search menu. It's still accessible by URL, but the menu item is gone (and even rebuilding the menu doesn't bring it back).

Hmm, good catch. We need to add an upgrader/disable/enable functions

@colemanw
Copy link
Member

How about instead of a managed nav-menu entry, just an enable/disable script in the upgrader class that changes the path of the existing nav-menu item.

@samuelsov
Copy link
Contributor Author

samuelsov commented Jun 29, 2023

I spoke too soon: If you disable AdminUI with this patch, Find Contacts disappears from the Search menu. It's still accessible by URL, but the menu item is gone (and even rebuilding the menu doesn't bring it back).

@larssandergreen this should be fixed. If you don't rebuild your testing instance from scratch, you need to first delete the civicrm_manage entry with :

DELETE FROM civicrm_managed WHERE name = 'Navigation_Find_Contacts';

@larssandergreen
Copy link
Contributor

Works for me now, thanks @samuelsov

Co-authored-by: demeritcowboy <[email protected]>
@demeritcowboy demeritcowboy merged commit 8e8f28f into civicrm:master Jul 4, 2023
@demeritcowboy
Copy link
Contributor

Thanks everybody.

@demeritcowboy
Copy link
Contributor

demeritcowboy commented Jul 21, 2023

The new url doesn't seem to be working anymore: civicrm/adminui/contact/search

@samuelsov
Copy link
Contributor Author

The new url doesn't seem to be working anymore: civicrm/adminui/contact/search

@demeritcowboy it has been moved to a new extension -> #26863 so if you are in master, you need to enable it

@demeritcowboy
Copy link
Contributor

Oh ok. This extension though still thinks it owns the link, so if you install adminui but not the other one then the menu link goes to the new url but it doesn't exist. See dmaster.demo.

@aydun
Copy link
Contributor

aydun commented Jul 24, 2023

I forgot to move that upgrader when moving the 'Find Contacts' search - See #26919

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants