Brooklyn, NY
Account created on 11 March 2009, over 15 years ago
#

Merge Requests

Recent comments

🇺🇸United States Daniel Korte Brooklyn, NY

daniel korte made their first commit to this issue’s fork.

🇺🇸United States Daniel Korte Brooklyn, NY

Noting here that I’m seeing a JS console error in D10.2.6 (with either patch #126 or the merge request since they are virtually the same) when attempting to embed media in ckeditor5 using a newly uploaded image and clicking the "Save and insert" button with the Media Library advanced UI enabled:

ajax.js?v=10.2.6:1143
An error occurred during the execution of the Ajax response: TypeError: Cannot read properties of undefined (reading 'options')
🇺🇸United States Daniel Korte Brooklyn, NY

Using Drupal\content_moderation\ModerationInformationInterface instead of Drupal\content_moderation\ModerationInformation and cleaned up the patch a bit

🇺🇸United States Daniel Korte Brooklyn, NY

Daniel Korte made their first commit to this issue’s fork.

🇺🇸United States Daniel Korte Brooklyn, NY

@bircher I think the added value here is being able to run the core/scripts/run-tests.sh script without errors caused by this module. Testing is not limited to just drupal ci. This fix is essential to other CI pipelines where the Drupal core test script is being used.

🇺🇸United States Daniel Korte Brooklyn, NY

Same as #26. This commit breaks sites with only options_show_only_used set. I opened #3439538 to figure out a solution.

🇺🇸United States Daniel Korte Brooklyn, NY

I’m changing this to a Bug Report since I would expect this behavior from the view own unpublished media permission, but let me know if I’m wrong here.

I cleaned things up and addressed comment #12 concerns. Also, I noticed the existing patches don’t apply to the Media Library Grid/Table Widget which also has this issue. I updated the Views config to mirror what is being used on the Media Library admin page with the media_status plugin. Everything appears to be working with the view own unpublished media permission now.

🇺🇸United States Daniel Korte Brooklyn, NY

Confirmed. This fixes the issue.

🇺🇸United States Daniel Korte Brooklyn, NY

This appears to be an issue with the editor_advanced_link module not supporting the editor_file module so changing this to a Feature request. The editor_advanced_link CKeditor 5 plugin only has support for the ckeditor5-link plugin. JavaScript needs to be added to this module to respond/listen for the editor_file ckeditor5 plugin execution.

🇺🇸United States Daniel Korte Brooklyn, NY

Daniel Korte created an issue.

🇺🇸United States Daniel Korte Brooklyn, NY

Fix PHP deprecated notice: Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in url()

🇺🇸United States Daniel Korte Brooklyn, NY

Applying the patch from 🐛 Logic error in Html::transformRootRelativeUrlsToAbsolute() Fixed to our custom transformRootRelativeUrlsToAbsolute() function...

🇺🇸United States Daniel Korte Brooklyn, NY

@jeffschuler Yeah, sorry, I wasn’t sure if I should have created a new issue or posted on that issue since the process function is completely different now. Also, though I finally figured out the tests. The test string wasn’t correct and the configuration wasn’t set.

🇺🇸United States Daniel Korte Brooklyn, NY

I had to update the tests so the Filter is actually loaded with the settings. The code is mostly mirrored from core/modules/filter/tests/src/Kernel/FilterKernelTest.php

🇺🇸United States Daniel Korte Brooklyn, NY

@jeffschuler Got it. Sounds good. I think I can knock that out in the next day or so.

🇺🇸United States Daniel Korte Brooklyn, NY

@jeffschuler Maybe I’m missing something, but why isn’t Html::transformRootRelativeUrlsToAbsolute() used in the process() function instead of the current regex?

🇺🇸United States Daniel Korte Brooklyn, NY

I think this module should more closely match what is happening in https://www.drupal.org/project/media_entity_audio in the 8.x-3.x version (minus the audio streaming stuff). My only intention here for 8.x-3.x is to update from 8.x-2.x and then be uninstalled. Therefore the Entity Browser widget should be removed like in media_entity_audio 8.x-3.x version, right? Also, this would mean the module should work with Drupal: ^9 || ^10 instead of only ^9.3 || ^10

🇺🇸United States Daniel Korte Brooklyn, NY

For anyone else needing help with this, I’m using this drush command for now:
drush sqlq "ALTER TABLE media__field_media_lottiefile ADD COLUMN field_media_lottiefile_addclass VARCHAR(32) default ''; ALTER TABLE media_revision__field_media_lottiefile ADD COLUMN field_media_lottiefile_addclass VARCHAR(32) default '';"

🇺🇸United States Daniel Korte Brooklyn, NY

Previous patch is for 2.x and this one is for 3.x

🇺🇸United States Daniel Korte Brooklyn, NY

better_exposed_filters needs to be required as ^6.0 for D10 support

🇺🇸United States Daniel Korte Brooklyn, NY

@Eduardo Morales Alberti I think so. That is the issue I am having. I added a check to the merge request. Please review, thanks.

🇺🇸United States Daniel Korte Brooklyn, NY

Daniel Korte made their first commit to this issue’s fork.

🇺🇸United States Daniel Korte Brooklyn, NY

Thanks, looks good. I removed the permission part and used the regular 'administer site configuration' permission here.

🇺🇸United States Daniel Korte Brooklyn, NY

Daniel Korte made their first commit to this issue’s fork.

🇺🇸United States Daniel Korte Brooklyn, NY

I don’t think it makes sense to make the 8.x-2.x branch D10 compatible (and thus remove D8 compatibility). That branch is only intended to work with D8/9. I recommend that all users upgrade to Drupal core media with the 8.x-3.x branch of this module, run Drupal updates, and then uninstall/delete this module.

🇺🇸United States Daniel Korte Brooklyn, NY

Allow 'json' too

🇺🇸United States Daniel Korte Brooklyn, NY

@andreic Try jsonapi/node?filter[type][condition][path]=type.meta.drupal_internal__target_id&filter[type][condition][operator]=IN&filter[type][condition][value][]=event_card&filter[type][condition][value][]=podcast

🇺🇸United States Daniel Korte Brooklyn, NY

Okay, it worked for me if I defined my computed field in code only (i.e. not adding the computed field to an entity bundle via the Field UI):

/**
 * Computed field string.
 *
 * @ComputedField(
 *   id = "computed_field_attached",
 *   label = @Translation("Computed field"),
 *   field_type = "string",
 *   no_ui = TRUE,
 *   attach = {
 *     "scope" = "base",
 *     "field_name" = "computed_field",
 *     "entity_types" = {
 *       "node" = {
 *         "article",
 *       },
 *     },
 *   },
 * )
 */
🇺🇸United States Daniel Korte Brooklyn, NY

I’m experiencing the same issue. The field shows up everywhere except the JSON output.

🇺🇸United States Daniel Korte Brooklyn, NY

This patch fixed a similar problem for me where the bundle was set to "menu_link_content" on migrated menu items from a Drupal 7 website. Using this patch fixed the bundles and the menu fields work again.

🇺🇸United States Daniel Korte Brooklyn, NY

This fixed an issue that I was having where the JS code was called twice after clicking show more.

🇺🇸United States Daniel Korte Brooklyn, NY

Yup, disregard #219. It was a configuration issue on my end.

🇺🇸United States Daniel Korte Brooklyn, NY

That was it! Thank you so much!

🇺🇸United States Daniel Korte Brooklyn, NY

Re-roll for the 1.4 version

🇺🇸United States Daniel Korte Brooklyn, NY

Same issue here. Reverting back to 7.x-1.0-beta2

🇺🇸United States Daniel Korte Brooklyn, NY

Restoring the empty() function fixes things for me.

🇺🇸United States Daniel Korte Brooklyn, NY

Here is a 8.x-1.x patch

Production build 0.71.5 2024