Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When Deleting a Member, Member Select to Reassign Entries does not populate #3384

Open
dougblackjr opened this issue May 11, 2023 · 2 comments · Fixed by #3407 · May be fixed by #4363
Open

When Deleting a Member, Member Select to Reassign Entries does not populate #3384

dougblackjr opened this issue May 11, 2023 · 2 comments · Fixed by #3407 · May be fixed by #4363
Assignees

Comments

@dougblackjr
Copy link
Contributor

Description of the problem

EE7 site that we're trying to delete a member. When trying to delete the member, it pulls up the modal to reassign entries. However, it does not populate the list of Members.

How To Reproduce
Steps to reproduce the behavior:

  1. Create site with 1000+ members (it's a LOT).
  2. Go to delete one of them.
  3. View select for reassignment

Error Messages
No error messages. No error in the ajax call, nothing in the console.

Screenshots / Videos / Template Code
Screenshot from 2023-05-11 13-18-43

I did see the data-react-select serialized data on the element in the code. That output a properly form object when using unserialize:
Screenshot from 2023-05-11 13-23-19

Environment Details:

  • Version: 7.2.19
  • PHP Version 8.0.x
  • MySQL Version 8.0
  • OS: Linux
  • Web Server: nginx, but prod has same on Apache
@intoeetive
Copy link
Contributor

I can confirm this happening - @Yulyaswan I hope there is an easy fix ;)

You can use heavy_load/many_members Cypress test to quickly create a lot of members, and then turn on "include in authors list" for Members role. Assign an entry to one of members, and then try to delete that member

@wilsones-berkeley
Copy link

Hello,

I wanted to flag that I am still experiencing this issue on EE 7.4.10.

Description of Problem

Same as initially reported.

How to reproduce

Same as initially reported.

Error messages

Same as initially reported.

Environment Details

  • Version 7.4.10
  • PHP Version 8.2.x
  • 10.5.17-MariaDB
  • OS: Linux
  • Web server: Nginx

Possible Fix

I temporarily fixed this issue by pasting the same lines of code from commit 28c8566 under the more specific jQuery selector for this modal (a[rel="modal-confirm-delete"]):

--- a/html/themes/ee/asset/javascript/compressed/cp/confirm_remove.js
+++ b/html/themes/ee/asset/javascript/compressed/cp/confirm_remove.js
@@ -153,6 +153,10 @@ $(document).ready(function () {
                        $.post(ajax_url, $(modalIs + " form").serialize(), function(data) {
                                $(modalIs + " .ajax").html(data);
                                Dropdown.renderFields();
+
+                               if ($('div[data-select-react]').length) {
+                                       SelectField.renderFields();
+                               }
                        });
                }
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment