noosfero | Handle related suggestions when a profile is destroyed (#565)
Daniela Feitosa
gitlab at gitlab.com
Thu May 14 16:50:51 BRT 2015
New comment for Merge Request 565
https://gitlab.com/noosfero/noosfero/merge_requests/565#note_1233856
Daniela Feitosa
The suggestions are not being removed because `Person` have a relation with the same name that overwrites it: https://gitlab.com/noosfero/noosfero/blob/master/app/models/person.rb#L87
The relation on `Person` is about the suggestions made for a person. And the relation on `Profile` is about the profiles (person or community) that were suggested to someone.
Renaming one of the relations will make the `:dependent` work as it should :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150514/bd5582db/attachment.html>
More information about the Noosfero-dev
mailing list