Commit d52271b
committed
Fix shredding users with their own attributes failing without a resolver
The @objects loop in RT::User::__DependsOn included Attributes, causing
all attributes where Creator/LastUpdatedBy matched the user being shredded
to be added as VARIABLE (resolvable) dependencies. This required a
resolver to be registered, which is only done when the replace_relations
option is set. As a result, shredding a user with a RecentlyViewedTickets
attribute (or any own attribute) always failed with "Couldn't find
resolver for dependency".
The user's own attributes are already handled as direct DEPENDS_ON
(delete) dependencies via $self->Attributes in RT::Record::__DependsOn,
so they don't need to appear as VARIABLE dependencies too.1 parent 54c2ef8 commit d52271b
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3180 | 3180 | | |
3181 | 3181 | | |
3182 | 3182 | | |
3183 | | - | |
3184 | 3183 | | |
3185 | 3184 | | |
3186 | 3185 | | |
| |||
3215 | 3214 | | |
3216 | 3215 | | |
3217 | 3216 | | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
3218 | 3234 | | |
3219 | 3235 | | |
3220 | 3236 | | |
| |||
0 commit comments