Skip to content

Commit cbb1dd2

Browse files
authored
Fix(Core): Fix data not being saved correctly (#92)
* Fix(Core): Fix data not being saved correctly * Adapt CHANGELOG.md
1 parent d045d96 commit cbb1dd2

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [UNRELEASED]
9+
10+
### Fixed
11+
12+
- Fix Group level not being saved correctly
13+
814
## [2.6.0] - 2025-09-30
915

1016
### Added

inc/group_level.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ public static function showForGroup(Group $group)
162162
'@itilcategorygroups/groupe.html.twig',
163163
[
164164
'item' => $item,
165+
'groups_id' => $ID,
166+
'params' => [
167+
'canedit' => Session::haveRight(Group::$rightname, UPDATE),
168+
],
165169
],
166170
);
167171

templates/groupe.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
__('Level', 'itilcategorygroups'),
4444
) }}
4545

46-
{{ fields.hiddenField('groups_id', item.fields['groups_id']) }}
46+
{{ fields.hiddenField('groups_id', groups_id) }}
4747

4848
{% endblock %}

0 commit comments

Comments
 (0)