#4286 Inform the user when changing the assignee failed
Merged 5 years ago by pingou. Opened 5 years ago by pingou.

file modified
+6 -2
@@ -983,7 +983,9 @@ 

        $('#assignee').val("{{ g.fas_user.username }}");

        setup_btn_take_drop();

      }

-   )

+   ).fail(function() {

+     alert( "An error occured, could not assign this ticket to you." );

+   })

    return false;

  }

  {% endif %}
@@ -1005,7 +1007,9 @@ 

        $('#assignee').val("");

        setup_btn_take_drop();

      }

-   )

+   ).fail(function() {

+     alert( "An error occured, could not drop the current assignee." );

+   })

    return false;

  }

  {% endif %}

We had an issue where the user asking to take or drop assignee on
a ticket had no feedback if the ajax call failed.
This commit fixes that by reporting an error to the user.

Fixes https://pagure.io/pagure/issue/3996

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

pretty please pagure-ci rebuild

5 years ago

Pull-Request has been merged by pingou

5 years ago