diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ccbc40..4b77386 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 + +- Fix dynamic group submit bouton + ## [1.1.1] - 2025-11-13 ### Fixed diff --git a/inc/computergroupdynamic.class.php b/inc/computergroupdynamic.class.php index 11c8577..a663b26 100644 --- a/inc/computergroupdynamic.class.php +++ b/inc/computergroupdynamic.class.php @@ -28,6 +28,8 @@ * ------------------------------------------------------------------------- */ +use function Safe\ob_start; +use function Safe\ob_get_clean; use function Safe\preg_match; use function Safe\preg_replace; use function Safe\preg_split; @@ -228,7 +230,12 @@ private static function showForItem(PluginDatabaseinventoryComputerGroup $comput $p['actionname'] = 'save'; $p['actionvalue'] = _sx('button', 'Save'); $p['showbookmark'] = false; + + //hack because submit button is not a submit... See https://github.com/glpi-project/glpi/pull/20731 + ob_start(); Search::showGenericSearch(Computer::getType(), $p); + $generic_search = ob_get_clean(); + echo preg_replace('/type="button" name="save"/', 'type="submit" name="save"', $generic_search); //display result from search if (!$firsttime) {