๐Ÿ‡ฎ๐Ÿ‡ณIndia @ashraf.hussain

Bangalore
Account created on 22 May 2008, over 16 years ago
  • Backend Developer at Zscalerย  โ€ฆ
#

Recent comments

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

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.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Adding a patch to fix by checking if the index exists in the array using isset.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Modified Patch #15 โ†’ to show taxonomy term edit links also.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Adding following functionality to entity_reference_integrity-n3247080-13.patch โ†’

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

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.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

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.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Uploading patch for resolving the above issue.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Modified Patch #11 to fix "Call to undefined method "getParentEntity()" error.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

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.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

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").

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

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.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

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.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Contributing the patch for Paragraph Editor Enhancement module.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

"Actions" is more relevant as compared to "Tasks".
The patch didn't work for Drupal 9.5.4. Contributing a patch here

Production build 0.71.5 2024