Patch added to check for Translation Existence Before Calling getTranslation(): Before attempting to fetch translations , use hasTranslation() to ensure the specified language is available.
And implement a Fallback for Missing Translations: If the translation doesnโt exist, you can fall back to the default language.
ashraf.hussain โ created an issue.
I have added the patch https://www.drupal.org/files/issues/2024-10-17/diff-3481103-2.patch โ and working fine.
Adding a patch to fix by checking if the index exists in the array using isset.
ashraf.hussain โ created an issue.
Modified Patch #15 โ to show taxonomy term edit links also.
Adding following functionality to entity_reference_integrity-n3247080-13.patch โ
- Add a check in code to show node edit link (if enabled in settings form) only for Node and Paragraph entities. (Refer to point 2 and 3 in comment #11 โจ Option to stop content from being unpublished Needs review
I see that updateEngineList
function has been deleted but it is still an ajax callback for the "server" select field.
Due to this, when I change the server, the engine list is not updated.
Uploading the patch for fixing the error when clicking Index Now.
1. Error: Call to a member function getFields() on null in Drupal\appsearch\Utility\Database::prepareNodeToIndex() (line 60 of /app/docroot/modules/contrib/elastic_enterprise_search/modules/appsearch/src/Utility/Database.php)
The above error happens when the Language Code for the node is 'pt-br' or 'es-mx'.
filter_var($node_id, FILTER_SANITIZE_NUMBER_INT) does not work in those cases to get the node id.
2. Error: Call to a member function getFileUri() on null in Drupal\appsearch\Utility\Database::mapFieldValues() (line 110 of /app/docroot/modules/contrib/elastic_enterprise_search/modules/appsearch/src/Utility/Database.php
The above error happens when the $field->entity is empty.
Both the issue are resolved in this patch.
Uploading patch for resolving the above issue.
ashraf.hussain โ created an issue.
Modified Patch #11 to fix "Call to undefined method "getParentEntity()" error.
The above patch(entity_reference_integrity-n3247080-6.patch) works perfectly to stop referenced nodes from being unpublished.
We also need
1. The ability to stop a referenced term from being unpublished.
2. Add a check box in admin setting form to show node edit link instead of node link in error message.
3. If the checkbox in point 2 is selected in admin settings form, when we try to delete or unpublish a particular node then on error message, user should get node edit link instead of node link or a plain text like "Node Title -> Paragraph Name" (e.g. "Winter 2022 > Suggested events").
Uploading the new patch for the same.
The above patch(entity_reference_integrity-n3247080-6.patch) works perfectly to stop referenced nodes from being unpublished. We also need 1. The ability to stop a referenced term from being unpublished. Uploading the patch for the same.
2. When we try to delete or unpublish a particular node then on error message, user should get an hyperlink of node where that is referring instead of a plain text like "Node Title -> Paragraph Name" (e.g. "Winter 2022 > Suggested events").
The above patch works perfectly to stop referenced nodes from being unpublished. We also need the ability to stop a referenced term from being unpublished. Uploading the patch for the same.
I was able to fix by the following steps:
Search for id: node_type in config directory.
Replace node_type with id: 'entity_bundle:node'
Run Drush cim.
Contributing the patch for Paragraph Editor Enhancement module.
"Actions" is more relevant as compared to "Tasks".
The patch didn't work for Drupal 9.5.4. Contributing a patch here