Skip to content

Commit

Permalink
Fix assign tags from rules (#225)
Browse files Browse the repository at this point in the history
* Fix assign tags from rules

* Update inc/tagitem.class.php

Co-authored-by: Stanislas <[email protected]>

* Update inc/tagitem.class.php

Co-authored-by: Stanislas <[email protected]>

* Fix indentation

* Update inc/tagitem.class.php

Co-authored-by: Stanislas <[email protected]>

* Add tests

* Fix tests

* Delete createSelfServiceUser function

* Update inc/tagitem.class.php

Co-authored-by: Romain B. <[email protected]>

* Update CHANGELOG

* Update CHANGELOG.md

Co-authored-by: Stanislas <[email protected]>

---------

Co-authored-by: Stanislas <[email protected]>
Co-authored-by: Romain B. <[email protected]>
  • Loading branch information
3 people authored Jan 23, 2025
1 parent d542134 commit bf786ff
Show file tree
Hide file tree
Showing 10 changed files with 2,295 additions and 210 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
/node_modules/
/vendor/
.gh_token
.phpunit.result.cache
tests/files/
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [UNRELEASED]

### Fixed

- Apply `tag` based on rules in all cases (for example: the user is self-service)

## [2.12.1] - 2024-10-24

### Fixed
Expand Down
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-deprecation-rules": "^1.2",
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3.11"
},
"config": {
Expand All @@ -19,5 +20,10 @@
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"autoload": {
"psr-4": {
"GlpiPlugin\\Tag\\Tests\\": "tests"
}
}
}
Loading

0 comments on commit bf786ff

Please sign in to comment.