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

FIX: box_actions.php still uses fk_user_done which no longer exists #31190

Merged

Conversation

atm-florianm
Copy link
Contributor

@atm-florianm atm-florianm commented Sep 29, 2024

FIX

I installed a brand new Dolibarr 20.0 and created an account with read permission on events, but not on other people's events. When I logged on with this user, I got SQL errors for the boxes

  • Oldest 3 events to do, not completed
  • The next 3 upcoming events

I found that, only for unprivileged users, the column fk_user_done is still used in some queries. This column was removed in v14.0, hence the error.

Important note

I am fixing it in v14.0 because this column was removed in this release, but in 14.0, the box box_actions_future.php didn't exist and, in v20.0, that box too references fk_user_done (and maybe in a few older versions as well), so it should also be fixed there.

@eldy eldy merged commit 385927f into Dolibarr:14.0 Sep 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants