Closed (fixed)
Project:
Menus attribute
Version:
8.x-1.1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Jul 2019 at 10:42 UTC
Updated:
21 Jul 2021 at 19:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ujin commentedComment #3
rpayanmThanks, it looks good for me:
Comment #4
edycarreyes99 commentedMissing core_version_requirement.
Comment #5
heddnI think this is good now. Upgrade status and upgrade rector don't show anything else.
Comment #6
mιχaliς commentedI can apply the #2 patch, but I can't apply patch on comment #4.
Composer say " Could not apply patch! Skipping. The error was: Cannot apply patch".
This is my tests :
1 --------------
Apply patch #4 --> failed
2 --------------
Apply patch #2 and patch #4 --> failed
3 --------------
Apply patch #2 --> Worked
When I read the interdiff on patch #4 I see :
@@ -2,3 +2,4 @@ name: Menus Attribute
type: module
description: 'Attributes for menu links'
core: 8.x
+core_version_requirement: ^8 || ^9
But in code (version 1.1) I have :
name: Menus Attribute
type: module
description: 'Attributes for menu links'
# core: 8.x
May be it's failed because core attribute is comment ?
Comment #7
hamadknows commentedI cannot apply the patch in comment #4 as well.
Any solutions : )
Comment #8
gruda commentedRe-rolled against 8.x-1.1
Comment #9
gruda commentedI was able to get this module working with d9 by creating an issue fork from the patch in #8 and following the directions for Creating issue forks and merge requests to implement this with composer. Below are the relevant parts of my composer.json file.
Ultimately if you are taking the time to upgrade, consider using menu_link_attributes module, as it is better supported and looks to provide much of the same functionality.
and then
$
composer require drupal/menus_attribute:dev-d9-compatibilityComment #10
themodularlabThanks to everyone for helping out with this fix. I am in the process of applying and committing this patch. It will be in the dev version shortly and included in the next release.
Comment #12
themodularlabComment #14
themodularlab