Account created on 7 June 2013, over 11 years ago
#

Merge Requests

Recent comments

πŸ‡§πŸ‡ΎBelarus Yury N

It is not just modules. When using JSON API we get error
Undefined constant "Drupal\Core\Entity\SAVED_UPDATED"
Which is not resolved by adding `$this->moduleHandler->loadAll();` but requires require_once(__DIR__ . '/../../../../core/includes/common.inc');

πŸ‡§πŸ‡ΎBelarus Yury N

Another issue with destination path for subdirectory installation. If you also have language prefix in path it is lost: /subdirectory/de/admin/content/media becomes /subdirectory/admin/content/media

πŸ‡§πŸ‡ΎBelarus Yury N

Latest dev works for me. Thank you.

πŸ‡§πŸ‡ΎBelarus Yury N

I was also thinking about using language negotiation in some way. Found that GraphQL module has it's own negotiation plugin. But did not understood where this "context" comes from.

Your solution covers our use cases. Thank you.
Moving to RTBC.

πŸ‡§πŸ‡ΎBelarus Yury N

It seems to work for route. Thank you.
But menu item itself (title for example) is untranslated.

πŸ‡§πŸ‡ΎBelarus Yury N

Yes, language argument would be great

πŸ‡§πŸ‡ΎBelarus Yury N

Latest dev resolved issue for us. Thank you!

πŸ‡§πŸ‡ΎBelarus Yury N

Proposed solution

πŸ‡§πŸ‡ΎBelarus Yury N

Did not had time for deeper testing, but it seems to work well. Thank you for your work!
Just one thing: now it returns original translation if requested language translation does not exist. It would be nice to have some control over this behavior, like return only requested translations or return translations and fallback to original language if no translation.

πŸ‡§πŸ‡ΎBelarus Yury N

Glad to hear that you found different solution. I have realized that my patch creates situations when entity referenced from required field does not have translation, which results in "Cannot return null for non-nullable field" errors

πŸ‡§πŸ‡ΎBelarus Yury N

Not sure if it is correct way to do it. But it worked for out case.

πŸ‡§πŸ‡ΎBelarus Yury N

Had to update patch because of https://www.drupal.org/project/drupal/issues/3036459 πŸ› Packaging info from .info.yml often creates conflicts when patching Active

πŸ‡§πŸ‡ΎBelarus Yury N

Yury N β†’ made their first commit to this issue’s fork.

πŸ‡§πŸ‡ΎBelarus Yury N

Run into the same issue. But in our case error happens in Select2::getValidSelectedOptions(). This patch solved the issue for us.

πŸ‡§πŸ‡ΎBelarus Yury N

Patch #37 works for required state when field has no uploaded file. But with file uploaded 'upload' element is hidden and field label's 'for' points to nothing, so required state does not work. I made a label and states to refer to 'fids' element in this case.

P.S. You need a patch from https://www.drupal.org/project/drupal/issues/1091852 πŸ› Display Bug when using #states (Forms API) with Ajax Request Needs work to have states working with AJAX elements

Production build 0.71.5 2024