From 02677fbd55c84275de060ae5f85734cc6eb534b7 Mon Sep 17 00:00:00 2001 From: Stanislas Kita Date: Tue, 2 Dec 2025 14:43:36 +0100 Subject: [PATCH] Fix(Core): Prevent failure when attempting to delete an actor --- CHANGELOG.md | 1 + inc/field.class.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24ab3c89..8641b0e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +- Fix prevent failure when attempting to delete an actor - Fix form `path` for `tab` `container` ## [1.23.1] - 2025-11-20 diff --git a/inc/field.class.php b/inc/field.class.php index 85803800..0939fe9b 100644 --- a/inc/field.class.php +++ b/inc/field.class.php @@ -1064,6 +1064,11 @@ function () { 'change', 'input, select, textarea', function(evt) { + if (evt.target.hasAttribute('data-actor-type')) { + // Do not handle actor type changes + return; + } + if (evt.target.name == "itilcategories_id" && {$items_id} == 0) { // Do not refresh tab container when form is reloaded // to prevent issues diues to duplicated calls (when object is new)