Ilogeek / redmine_issue_dynamic_edit

Allows users to dynamically update (AJAX) issue's attributes from issue details page without any refresh (JIRA like)
http://www.redmine.org/plugins/redmine_issue_dynamic_edit
MIT License
134 stars 56 forks source link

Status change not working on issue detail #124

Open evs-xsarus opened 1 month ago

evs-xsarus commented 1 month ago

Recently my Redmine instance has been updated and uses dynamic edit 0.9.2 .

To close an issue, I've added a simple button which does nothing more then:


function closeTicket() {
    var option = 5;
    if (optionExists("issue_status_id", 18)) {
        option = 18;
    }
    $("#issue_status_id_dynamic").val(option).trigger("change");
}

The option are those to close the issue.

The trigger starts the post to the server (edit.js), but nothing is changed anymore. If I change the status myself using that dynamic form, the status is changed. I've compared the payload sent to the server and noticed that using my code, the new status_id is missing. Is there another method to achieve this now?