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

Error when trying to delete account without moving transactions to another account #278

Closed
rubella opened this issue Jul 15, 2016 · 1 comment

Comments

@rubella
Copy link

rubella commented Jul 15, 2016

If I try to delete and account and select to move the transactions to another account, everything works, but if I do not select another account and leave the option as 'none' I receive an error.

Here is what the log says:

[2016-07-15 14:36:25] production.ERROR: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`firefly`.`transactions`, CONSTRAINT `transactions_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE) in /firefly-iii/vendor/laravel/framework/src/Illuminate/Database/Connection.php:431

Can anyone replicate this error?

@JC5
Copy link
Member

JC5 commented Jul 15, 2016

Yes, unfortunately this is a known bug. The dev-branch has it fixed already. Once the next version goes live, it should fixed for you as well.

@JC5 JC5 closed this as completed Jul 17, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants