I tagged a 5.1.3 release https://www.drupal.org/project/backup_migrate/releases/5.1.3 → with this fix
@sirclickalot let's create a new issue about schema (if it doesn't exists)
@sirclickalot could you remove "canonical" = from src/Entity/SettingsProfile.php as here https://git.drupalcode.org/project/backup_migrate/-/merge_requests/63/di..., clear cache and test again ?
Nice catch!
The problem was reproduced when I created a new setting
@sirclickalot, entity.backup_migrate_settings.canonical is dynamic route for entity. It shouldn't be in backup_migrate.routing.yml file.
I tested again manually. Drupal 11.3, PHP 8.4.
I can't reproduce this. Try to remove old patches for this issue if they exists
Also it could be APCu cache, try to restart web-server
I created a 5.1.2 release https://www.drupal.org/project/backup_migrate/releases/5.1.2 →
I created a 5.1.2 release https://www.drupal.org/project/backup_migrate/releases/5.1.2 →
I don't have permissions to create releases. Contact to @japerry →
@medha kumari this is already fixed.
Looks like already fixed in dev version https://git.drupalcode.org/project/field_permissions/-/commit/278fd5ed31...
Did you scan dev or release version of module?
Unfortunately it can breaks a lot of existing sites. I think the best way is using flag-count.html.twig in your theme and edit it as you need
In 2025 this simple task could be resolved with CSS only.
My flag machine name is "test_flag"
CSS code
.flag-test-flag {
position: relative;
display: inline-block;
cursor: pointer;
user-select: none;
}
.flag-test-flag a {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 4px 12px;
border: 2px solid #cbd5e1;
border-radius: 6px;
background-color: #f8fafc;
transition: all 0.2s ease;
cursor: pointer;
text-decoration: none !important;
color: #1e293b !important;
}
.flag-test-flag.action-flag a:hover {
border-color: #3b82f6;
background-color: #eff6ff;
}
.flag-test-flag.action-unflag a {
border-color: #10b981;
background-color: #dcfce7;
}
.flag-test-flag.action-unflag a:hover {
border-color: #059669;
background-color: #d1fae8;
}
.flag-test-flag a::before {
content: "";
display: inline-block;
width: 16px;
height: 16px;
border: 2px solid currentColor;
border-radius: 3px;
background-color: #fff;
transition: all 0.2s ease;
}
.flag-test-flag.action-unflag a::before {
background-color: #10b981;
border-color: #10b981;
box-shadow: inset 0 0 0 3px #fff;
}
.flag-test-flag.action-unflag a span {
color: #166537;
}
Mmm, but haven't they been doing this through REST for a long time? Is REST not suitable for you?
Duplicate of 🐛 Invalid CSRF token using flag.link_builder service Needs work
Duplicate of 🐛 Invalid CSRF token using flag.link_builder service Needs work
I forgot to remove "status" filter like this
$this->drupalGet('/admin/structure/views/nojs/handler/flag_bookmark/page_1/filter/status');
(facepalm)
Tested again, it works as expected
Also please use new constructor's format like this https://git.drupalcode.org/project/privatemsg/-/blob/2.0.x/src/Controlle...
PHPCS has "565 ERRORS AND 10 WARNINGS"
I think needs to separate issue to PHPCS and PHPSTAN fixes. This issue about PHPSTAN issues
Duplicate of 📌 Fix PHPStan and Coding standards issues Needs work
Just upgrade to 5.1.1
Backup Migrate can't require drupal/core-composer-scaffold, see https://git.drupalcode.org/project/backup_migrate/-/blob/5.1.x/composer....
I tagged a new release https://www.drupal.org/project/backup_migrate/releases/5.1.1 →