Invalid Ajax command in process details breaks autocompletion in view autocomplete filter

Created on 12 February 2024, 5 months ago
Updated 20 February 2024, 4 months ago

Problem/Motivation

Process details ajax handling code seems to break autcomplete in view filters

Steps to reproduce

Add an autocomplete filter to the process view (initiator for example with new relationship) and open/close a process details: the autocomplete filter field will stop working.

Proposed resolution

Remove probably invalid code in the closeDetails controller.

The first line below seems invalid as no #maestro-ajax-xx can be found in the DOM tree and removing the line fixes the problem.

$response->addCommand(new HtmlCommand('#maestro-ajax-' . $processID, ''));
$response->addCommand(new HtmlCommand('.maestro-status-toggle-' . $processID, $build['expand']));
$response->addCommand(new CssCommand('#details_replace_row_' . $processID, ['display' => 'none']));

May be someone can explain what the first line above is supposed to do exactly?

πŸ› Bug report
Status

Needs review

Version

3.1

Component

Code

Created by

πŸ‡«πŸ‡·France mably

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024