-
-
Notifications
You must be signed in to change notification settings - Fork 817
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
dev/core#2490 Drupal8: Fix CMS intergration table mapping #19989
Conversation
In Drupal8, CMS intergration don't show table mapping, because $database global variable is no more defined and can be retreived using Drupal\Core\Database\Database::getConnectionInfo()
Can one of the admins verify this patch? |
(Standard links)
|
add to whitelis |
add to whitelist |
We probably should put the funciton on the drupal classes & then it becomes
with the functions being called being on CRM_Utils_System_Drupal etc |
Agree just I'm also trying to figure out why this patch isn't working for me locally. Regardless of the location it seems like it should. |
Oh, it would help if I update the right install. So yes it works. Actually this whole code function is full of |
@olivierh65 The test run is failing because there are blank spaces on lines 46 and 54 and the style checker doesn't like that. |
Removes spaces on line 56
|
Agree with the 'Soft pass' comments under But IMHO the r-explain needs work -- i.e. it's still got a large blob of template/boilerplate text. If the Gitlab issue summarizes everything you need to know, then that's cool - but the description should have the link and should clean-up the boilerplate. |
I took the liberty of editing the PR summary to add more details. |
Looks good. Thanks @mlutfy @demeritcowboy @olivierh65 |
In Drupal8, CMS intergration don't show table mapping, because $database global variable is no more defined and can be retreived using Drupal\Core\Database\Database::getConnectionInfo()
Before
On the "CMS database integration" page, when running CiviCRM/Drupal on separate databases, the CMS database settings are not visible:
After
Technical Details
Fetches the Drupal8 database info from the place where D8/D9 now manages this.
Comments
edits by mlutfy.