#306 - Mass Assign - error in where clause
When I try to mass assign the entire data set, I receive the following error: "MySQL error 1054: Unknown column 'jt0.first_name' in 'where clause'" The bug is created in the file MassAssign.php, the query in $_SESSION['export_where'] has a condition for jt0 but the query's join does not have an alias for the tables and thus the errors is thrown. How can I fix this issue? Note: I'm using sugar version 6.5.15.
11 years ago
Which module are you doing this on and can you list out all of the columns that are displayed on that list view? Thanks!
11 years ago
It's a custom module, the list view columns include the name field, relate fields and other fields (date, text, ddl), would it help if we paste here the entire $_SESSION['export_where'] ?
11 years ago
Custom relationships on a custom module list view can be a nightmare to support. I'm not looking forward to this case :)
There is so much involved that it would be most helpful to zip up your /modules/{CUSTOMMODULE} and /custom/modules/{CUSTOMMODULE} folder and email them over to me at [solutions] - @ - [eggsurplus] [.] [com].
10 years ago
We attempted to debug a bit over email. Were you able to find the cause of your issue?
9 years ago
Has this been addressed back then? Facing the same issue with a custom module - when trying to mass remove group assignments from records.
9 years ago
Sugar has some really buggy code in this area. It stems from the related records being on the list view and on the search. SecuritySuite can't work correctly in these cases. I'm not sure what to suggest in this case except to try the latest version of Sugar and hope or remove the related columns from the search and search based on user first/last name instead of user name.