You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.
If you have 2 folders that where created in one model then the folders dont get deleted. only one folder get deleted. f.e. you have databasefields avatar_1 and avatar_2.
This is because of the "if (!$path) {" in afterDelete in the behavior.
If it tries to delete the second folder then the path is the path from the folder before.
So if you delete the condition, the path gets new every time and both folders are deleted.
Please take a look. i have deleted the condition and it works. This has to be fixed i think. Do we need the condition? I dont think so. Below is the code without condition.
If you have 2 folders that where created in one model then the folders dont get deleted. only one folder get deleted. f.e. you have databasefields avatar_1 and avatar_2.
This is because of the "if (!$path) {" in afterDelete in the behavior.
If it tries to delete the second folder then the path is the path from the folder before.
So if you delete the condition, the path gets new every time and both folders are deleted.
Please take a look. i have deleted the condition and it works. This has to be fixed i think. Do we need the condition? I dont think so. Below is the code without condition.
http://pastebin.com/eJU55xi3
The text was updated successfully, but these errors were encountered: