Account created on 21 February 2017, over 7 years ago
#

Merge Requests

More

Recent comments

🇹🇷Turkey makbay

Database is 10.3.39-MariaDB.

No, contrib modules are also installed.

🇹🇷Turkey makbay

Thank you and could you please give the credits for people that have tried to fix this?

🇹🇷Turkey makbay

The MR should resolve the issue. Here is a patch.

🇹🇷Turkey makbay

makbay changed the visibility of the branch 3377861-php-undefined-array to hidden.

🇹🇷Turkey makbay

I think it's about this:

Call to deprecated method loadRevision() of class               
         Drupal\Core\Entity\EntityStorageInterface:                      
         in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
         \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
         instead.   

I had on tests for a similar issue here: https://www.drupal.org/project/drupal/issues/3201209 🐛 Hook presave does not set original correctly when editing non-default revision entities Needs work

https://git.drupalcode.org/issue/drupal-3201209/-/pipelines/97456

🇹🇷Turkey makbay

Thanks for the MR and patch but this is still working incorrectly when the latest saved entity is the default version.

Since the patch is checking if the latest version is default or not, in case the latest revision is default (published), the $entity->original again gets the previous default (published) revision instead of the latest revision.

Steps to reproduce after patch

  1. Enable the Workflows module
  2. Add Basic Page as applying to the 'Editorial' workflow
  3. Create and move a basic page through the workflow to published, then set to draft
  4. Finally, edit the non-default revision (draft) basic page again and set it to ready for review
  5. In a presave hook, $entity->original will be set to the published revision instead of the draft revision.
  6. Publish the basic page again.
  7. Create a new non-default revision (draft). The patch is ok for now, $entity->original will be set to the published version.
  8. Create another new non-default revision (e.g in review) after the published one. The patch is still ok, $entity->original will be set to the draft version on the previous step.
  9. Now publish the basic page. The patch will not work here since there is !$entity->isDefaultRevision() check in the condition and $entity->original will be set to the previous published version on step 6.

So, I think we need to remove !$entity->isDefaultRevision() check from the if block.

I'll create another MR for this.

🇹🇷Turkey makbay

I also noticed this on 10.2.x site and the patch fixed it.

🇹🇷Turkey makbay

I can also confirm that this happens for Turkish characters.

All of my tables and database are collated as utf8mb4_general_ci

Just came here from: https://www.drupal.org/project/webform/issues/3415445 🐛 Search Chinese in /admin/structure/webform cause error: Illegal mix of collations Closed: duplicate

🇹🇷Turkey makbay

For me it was not about the bulk operations. The exception was appearing when I go to the results page of the webforms. But the diff has resolved this.

🇹🇷Turkey makbay

I can confirm the diff resolves the issue. Drupal 10.1.7 & PHP 8.1

🇹🇷Turkey makbay

makbay made their first commit to this issue’s fork.

🇹🇷Turkey makbay

I can confirm the patch is ok, tested on Drupal 10.1.7 and 10.2.0

🇹🇷Turkey makbay

makbay made their first commit to this issue’s fork.

🇹🇷Turkey makbay

makbay changed the visibility of the branch 3150991-elastic-search-not to hidden.

🇹🇷Turkey makbay

makbay made their first commit to this issue’s fork.

🇹🇷Turkey makbay

I have created a similar issue to the original issue and noticed the change of CLDR json publishment there:

https://www.drupal.org/project/drupal/issues/3395852#comment-15285830 📌 Update the countries list to latest Unicode CLDR version 44 Fixed

This is the most recent way to get the json:

- Choose the main branch on repository https://github.com/unicode-org/cldr-json
and download the territories.json file inside the directory cldr-json/cldr-localenames-full/main/en
e.g. https://github.com/unicode-org/cldr-json/blob/main/cldr-json/cldr-locale....

🇹🇷Turkey makbay

Never mind this. The dependency is coming from the Paragraphs Library module, which is not properly installed on my setup.

🇹🇷Turkey makbay

The issue I have created for D10/11 is just committed. Now we may consider committing this one.

📌 Update the countries list to latest Unicode CLDR version 44 Fixed

🇹🇷Turkey makbay

Actually I ran the script on a D9.5 site and copied the output from there.

Seems we have another issue here.

🇹🇷Turkey makbay

@cilefen, hope it's ok now. Please feel free to change the title and/or issue summary in order to make this go through. Contributing should not be this hard and discouraging.

🇹🇷Turkey makbay

Attached is the latest list from CLDR.

Actually, the way that CLDR publishes the json is also changed. I'll be also creating an issue to fix the description text inside the update-countries.bash

🇹🇷Turkey makbay

I have created the issue for D9/10 so this can be closed now I guess.

🇹🇷Turkey makbay

Hi @cilefen,

You're right. Now the list is fully updated including a new country called Sark. Greetings from Türkiye to all the people of Sark :)

🇹🇷Turkey makbay

Coming from Permission for viewing active domains Closed: duplicate and I have closed it in favor of this issue.

Well, actually in my case, we have an entity reference field referencing to domain entities in a content type. While using this field in a view to create a link to the referenced domain, non-admin users is not allowed to see the link or referenced domain entity. Please see the image below.

🇹🇷Turkey makbay

Oops there is another issue open that describes the need better. I'm closing this and will continue working there.

https://www.drupal.org/project/domain/issues/3332327 Show Domain Access field without 'view domain list' permission Active

🇹🇷Turkey makbay

Well, actually in my case, we have an entity reference field referencing to domain entities in a content type. While using this field in a view to create a link to the referenced domain, non-admin users is not allowed to see the link or referenced domain entity. Please see the image below.

I don't think that we need a default block implementation at the moment. I'll try to update he patch and MR.

🇹🇷Turkey makbay

I can confirm that we have 2 separate fields for singular and plural translations and it works!

🇹🇷Turkey makbay

@TwoD

I tested your commit. It's removing all the items instead of removing the one that should be removed.

🇹🇷Turkey makbay

Same here. Actually $field_state['removed_item_id'] does not exist.

Production build 0.69.0 2024