Can't delete (no submit) user who hasn't do anything




2 years ago
a year ago


(Reporter: renaud.laurence, Unassigned)






2 years ago
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Build ID: 20170126200443

Steps to reproduce:

- create a user, do not use it
- make sure the allowdeleteuser is on
- try to delete the user
  * go to editusers.cgi, search user
  * click on delete

Actual results:

The page display the info for this user but no submit button for actualy delete the user.

Expected results:

give the possibility to delete him or say why you can't

Comment 1

2 years ago
nota: does not happen if the user is in a bug : "say can't delete" nor if user is in cc

i "think" that the problems come from the confirm_delete.html.tmpl

on the line :
  [% IF accept_deletion %]
      <p class="areyoureallyreallysure">
    [% END %]
  [% END %]
[% END %]

has a [% END %] who should be before the condition, i think the condition is in the 
  [% IF assignee_or_qa || cc || component_cc || email_setting || flags.requestee ||
        namedqueries || profile_setting || quips || series || watch.watched ||
        watch.watcher || whine_events || whine_schedules || otheruser.has_audit_entries ||
        other_safe %]

so it never trigger if the user has'nt one of the option, at least it seems to work correctly if i move on of the end before the if accept_deletion
You need to log in before you can comment on or make changes to this bug.