IModule.isModified() always returns true in pre/post save hook #103
kschmiechen
started this conversation in
General
Replies: 1 comment 5 replies
-
Hi @kschmiechen, we are not modifying the state of the objects in the interceptor-manager. I've made simple tests. @Override
public String preAction(@NotNull IPObject object) {
@NotNull IModule module = (IModule) object;
boolean modified = module.isModified();
...
} Case 1: document has no structural changes ( May be it's related to the understanding of "structural changes". You asked for "just change a custom field of a document", from my point of view this is "structural changes", because it changes the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
During my hook implementations, I figured that IModule.isModified() always returns true in pre/post save hooks, even if the structure of the document has not been changed (structure change: document newly created, work items added/removed/moved).
I reported this issue to Polarion Support but they just forwarded me to you.
I don't see how the Interceptor Manager should cause this behavior.
I can also reproduce this in the previous interceptor framework: https://extensions.polarion.com/extensions/146-work-item-action-interceptor-framework
Maybe you can reproduce (e.g., just change a custom field of a document and check the method in the manager itself) this issue and comment on the topic.
I'll then get back to Siemens with the additional info.
Beta Was this translation helpful? Give feedback.
All reactions