Closed (fixed)
Project:
Metatag
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2021 at 11:49 UTC
Updated:
29 Dec 2021 at 01:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sutharsan commentedDynamic title in https://git.drupalcode.org/issue/metatag-3209938/-/tree/3209938-edit-for...
Comment #3
damienmckennaThat's a nice improvement, thank you!
Comment #5
damienmckennaSomething's strange here, a huge number of tests fail.
Comment #7
murilohp commentedHey @DamienMcKenna, I think this is a great improvement, I didn't know if you would work on this later, but testing locally here, I found that an use statement was missed, I updated the code with this and documented the new function.
I hope I'm not doing something wrong, I haven't seen the assign to you, then I thought I could help you with that.
Comment #8
murilohp commentedI had to rebase branch 8.x-1.x into the current branch, there were some code missing and I think this will solve the testing problems.
Comment #9
damienmckennaOne question - what condition would lead to $metatag_defaults being NULL, and wouldn't that lead to errors being displayed because there is no label() method on a NULL object?
Comment #10
sutharsan commentedI have checked how the title callback is called and how other entity form handlers use their title callback (NodeController::addPageTitle, NodeViewController::title, CommentController::commentPermalinkTitle). I see no way the
$metatag_defaultscan be empty. None of the callbacks I found uses a null default value. I must have picked a bad example when I initially wrote the code.Comment #11
murilohp commentedThank you so much for this response @sutharsan! When I first saw this issue, I thought I could help you with the test part, do you think you can update the PR?
If you can't there's no problem, I can do it for you later.
Comment #12
damienmckennaThanks for digging through that and confirming the parameter default wasn't needed.
Just waiting for the testbot to finish.
Comment #13
damienmckennaThe tests are failing because of a problem with core, not because of the changes in the merge request.
Let's try a patch.
Comment #14
damienmckennaGo figure.
Committed. Thank you!