reciprocity/ggrc-core — pull request #495 by SilasX (2013-11-04 22:23:02+00:00)
Title: Feature/map log fix3

Objects could be created under the widget interface that are automatically mapped/nested under a Directive, but the Directive it is mapped to was not listed in the Event log. This is because it is a creation even which, unlike mapping events, does not have a link object that normally triggers the log to mention the relation to the mapped object.

This PR makes sure that `Control`s and `Sections` created this way are logged such that their parent Directive (the one they get mapped to) is mentioned in the corresponding event. It is handled as a special case pertaining to creation of those events only.

It was not necessary change the logging/Event behavior of other object types because the interface requires them to be created separately first, without mapping. This ensure that their later mapping is actually logged.