Account created on 7 October 2012, about 12 years ago
#

Recent comments

🇳🇴Norway matsbla

This fix the error, however sub field group are not created.

🇳🇴Norway matsbla

Oh, could you perhaps try open an issue and provide clear descriptions of what happens and perhaps step to reproduce?

For the updated patch I tested it, but when applying it the layout col-element now becomes draggable again.

🇳🇴Norway matsbla

Thank you for the report and patch!

When testing it seems like I'm not able to create any other field group types (When I click on "Save and continue" nothing happens). Perhaps we need to make sure the field is only mandatory for the layout field groups..

🇳🇴Norway matsbla

Thanks for the effort, it works better, but still if you would manage to drag a group inside the layout groups they will now still not be movable anymore. Perhaps we also need to check if it is a layout col-element.

🇳🇴Norway matsbla

Thank you for the feedback, can confirm the issue. Am attaching a screenshot as reference.

🇳🇴Norway matsbla

Thanks for the link - is that the only change needed to upgrade?

But it would be good if you can make sure these patches are generated for all projects, it makes it very easy to quickly upgrade the modules :)

🇳🇴Norway matsbla

This module also didn't get any patch for D11 upgrades, is it possible to make the boot provide the patch?
https://www.drupal.org/project/field_group_layout

🇳🇴Norway matsbla

Please upgrade to 2.0.0-alpha1, this should be fixed now.

🇳🇴Norway matsbla

Please upgrade to 2.0.0-alpha1, this should be fixed now.

🇳🇴Norway matsbla

Please upgrade to 2.0.0-alpha1, this should be fixed now.

🇳🇴Norway matsbla

Please upgrade to 2.0.0-alpha1, this should be fixed now.

🇳🇴Norway matsbla

This looks like a great improvement!

🇳🇴Norway matsbla
  if ($node->getType() === 'person') {
    $label .= sprintf(' (%s)', $node->get('field_last_name')->value);

This seems like part of hard-coded custom code, perhaps should be removed from the patch?

🇳🇴Norway matsbla

I tested this now, and I get these errors:

Error: Call to a member function getType() on null in Drupal\anti_duplicates\Form\AntiDuplicatesFormAlter::duplicatesSearch() (line 35 of /var/lib/tugboat/stm/web/modules/contrib/anti_duplicates/src/Form/AntiDuplicatesFormAlter.php)

Warning: Undefined variable $currentNode in Drupal\anti_duplicates\Form\AntiDuplicatesFormAlter::duplicatesSearch() (line 35 of /var/lib/tugboat/stm/web/modules/contrib/anti_duplicates/src/Form/AntiDuplicatesFormAlter.php)

🇳🇴Norway matsbla

The problems is when the user only want to change the title, make changes without unfocusing the title field, and then doesn't understand why the submit button is disabled. This solution will solve one UI challenges by introducing a new one.

Instead of disabeling the button, could we make sure that if title is still unfocused, that we run the anti-duplicate check when user click submit, before we process the submit button action?

🇳🇴Norway matsbla

The error mentioned in #10 is still there. In addition when you click update the whole website encountered an unexpected error:

Error: Attempt to assign property "label" on null in field_group_field_overview_submit() (line 478 of modules/contrib/field_group/includes/field_ui.inc).

🇳🇴Norway matsbla

I will look over again, but please reroll the MR as 🐛 Title search should exclude the current node Fixed has been fixed now

🇳🇴Norway matsbla

Okay I tested and looked over again now, thanks!

🇳🇴Norway matsbla

Both MR 4 or MR 6 does not fix the error adressed in this issue.

Warning: Undefined property: stdClass::$group_name in Drupal\field_group_layout\Plugin\field_group\FieldGroupFormatter\LayoutFormatter->settingsForm() (line 73 of modules/contrib/field_group_layout/src/Plugin/field_group/FieldGroupFormatter/LayoutFormatter.php).

Warning: Undefined array key "" in Drupal\field_group_layout\Plugin\field_group\FieldGroupFormatter\LayoutFormatter->settingsForm() (line 73 of modules/contrib/field_group_layout/src/Plugin/field_group/FieldGroupFormatter/LayoutFormatter.php).

🇳🇴Norway matsbla

This simply use the module description inside the help page, which is really not useful. To implement a help page it should be more detailed description about how to actually use the module.

🇳🇴Norway matsbla

I tested the patch, but the group layout is not changed, and I get some new errors:

Warning: Attempt to read property "format_type" on null in field_group_field_ui_display_form_alter() (line 350 of /var/lib/tugboat/stm/web/modules/contrib/field_group/includes/field_ui.inc)

Warning: Undefined variable $new_group1 in Drupal\field_group_layout\Plugin\field_group\FieldGroupFormatter\LayoutFormatter->settingsSummary() (line 153 of /var/lib/tugboat/stm/web/modules/contrib/field_group_layout/src/Plugin/field_group/FieldGroupFormatter/LayoutFormatter.php)

🇳🇴Norway matsbla

This simply use the module description inside the help page, which is really not useful. To implement a help page it should be more detailed description about how to actually use the module.

🇳🇴Norway matsbla

I've started to make an implementation of the view modes, but didn't finish it yet.

I think we could have a hook, but in that case it should not be just to change the label, but to take complete control of the output (label + link)

🇳🇴Norway matsbla

I tested #8 manually, tried to restrict to 3 results, but I still see more than 3 results.

🇳🇴Norway matsbla

> duplicates are checked during typing in the title field.

I tested now and it seems like it is only checked when the title field is unfocused - am I missing something?

> disabling the submit button when focusing the title field

Am not sure if this is the best solution. What happens if the user only want to change the title, make changes without unfocusing the title field, and then doesn't understand why the submit button is disabled?

🇳🇴Norway matsbla

I tested this manually, and I still see current node in results when adding the exact same title:
https://git.drupalcode.org/project/anti_duplicates/-/merge_requests/3.diff

🇳🇴Norway matsbla

I tested this, and when writing a title I now get this error in the log:

Error: Call to a member function addCommand() on null in Drupal\anti_duplicates\Form\AntiDuplicatesFormAlter::duplicatesSearch() (line 76 of /var/lib/tugboat/stm/web/modules/contrib/anti_duplicates/src/Form/AntiDuplicatesFormAlter.php)

🇳🇴Norway matsbla

This looks pretty good, but could make it not possible to drag elements into same level as the columns?

🇳🇴Norway matsbla

I guess it would, as that can be done using css, right? But if we have a patch to implement the feature we could spend a little time testing on it to see if different scenarios could be covered.

🇳🇴Norway matsbla

I tested this, but I got a funny result. I tried to first create one node with title "Test node 1", then another node "Test node 2". After I try to edit the node "Test node 2", and then the current node ( "Test node 2") is still displayed in the list. However the count is correct (not counting current node), but the current node is still displayed in the list.

🇳🇴Norway matsbla

Hi! Sorry you had to wait a little on some of the issues! I'm open to collaborate, but maybe we should discuss a little roadmap first? Are you just looking at solving bugs or would you like to make bigger changes on the module?

I worked with co-maintainers before who are so eager to quickly solve their own issues that they forget to consolidate the solution, and either introduce new bugs or introduce solutions only tailored to their own cases. I personally check everything thoroughly before I commit, I like to have several eyes on it, do some manual checking, and discuss others use cases. I prefer to spend a little longer time to make something solid than work too quickly :)

My own idea with this module for now is that it should have some more flexible configuration of the result box, and that it should be more configurable for each content type - what are your own thoughts?

🇳🇴Norway matsbla

My own thoughts is that we should probably make the whole message configurable, than provide the count as an optional token. What do you think?

🇳🇴Norway matsbla

Thanks for the effort.

I think we need to discuss this a little bit. My plan was to make it possible to configure a view mode for the results, in that case you could configure the display anyhow you want through the UI. However it should then be possible to configure different view mode for each content type.

Any thoughts?

🇳🇴Norway matsbla

Thank you, but the patch needs to be rerolled

🇳🇴Norway matsbla

It looks good, but I think the patch need to be rerolled!

🇳🇴Norway matsbla

Thank you for this effort. I do see the problem. However one challenges with this patch is when the user want to only change the title and click on "save" button before the title field is unfocused. When I tried that the title field becomes empty and I get an error message stating that the title field is required. Please check an earlier bug 🐛 Title changes not submitted via AJAX Post in some cases Fixed when you could actually save the node before the duplicates are checked leading to new title being lost. I think this is where the problem you try to address was introduced, but it also needs to be possible to save the node without unfocusing the title first

🇳🇴Norway matsbla

I do understand it can be difficult to cater for everyone, but I hope it will be possible to find a way to keep configurable options so it is possible redirecting to a confirmation page!

🇳🇴Norway matsbla

I am also not able to reproduce this. Can you give steps to reproduce? And could you clarify what you mean with 'name', e.g. class name, machine name, UI name, etc?

🇳🇴Norway matsbla

Lasts tests for context module added in 🐛 Settings no longer stored as third party settings Fixed

🇳🇴Norway matsbla

Great suggestion - if someone add a patch for it will help review

🇳🇴Norway matsbla

Oh okay.
But is it still not strange that these module never received any patch for update? Shouldn't all projects module that?

Production build 0.71.5 2024