Work object lock unreleased
You notice that locks on open work objects are not always released when users close the tab containing the item.
Steps to Reproduce
- Create a covered item
- Include a custom link that opens the item's cover item in the same tab
- Open the cover item from that custom link
- Close the tab
When the tab is closed it calls the activity Work-.Close. Close will return the locks for the item in pyWorkPage and pyWorkCover. When the child item was opened, locks were acquired on both the cover and covered items. When the contents of the tab were changed to contain just the cover, the lock was never returned for the covered item. At the time Work-.Close was called, the pyWorkPage contained the cover item and there was no pyWorkCover.
Use an explicit call to activity Work-.WorkUnlock to close the covered object when replacing it with its cover object.
0% found this useful