Make the service template controller re-evaluate dynamic membership when apply all button is pushed (#15214)

This commit is contained in:
eskyuu 2023-08-22 07:27:54 +08:00 committed by GitHub
parent 99cfbf1d63
commit 7d950825a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -332,6 +332,9 @@ class ServiceTemplateController extends Controller
*/
public function apply(ServiceTemplate $template)
{
if ($template->type == 'dynamic') {
$template->updateDevices();
}
ServiceTemplateController::applyDevices($template);
ServiceTemplateController::applyDeviceGroups($template);