Solprovider Lenya Kongregate Registration for Free Flash Games and Chat with solprovider

Error Deleting User

Using the Delete buttons on the User Admin page caused an error:
"Uncaught JavaScript Exception"
It does not seem to matter as clicking Back and refreshing shows the user was removed. Here is a fix to remove that annoying message:

FILE: /opt/apache-lenya-1.2.2/build/lenya/webapp/lenya/content/admin/users/user-admin.js
Near the end of the file is:
if (cocoon.request.get("submit")) {
try {
var userManager = getAccreditableManager().getUserManager();
userManager.remove(user);
}
finally {
release();
}


Add the catch line:
if (cocoon.request.get("submit")) {
try {
var userManager = getAccreditableManager().getUserManager();
userManager.remove(user);
}catch(e){ ;
}
finally {
release();
}



<< CMS GUICreate All Languages >>

Contact Solprovider
Paul Ercolino