/
DB Item Clear method and field option customizations
DB Item Clear method and field option customizations
Imported From: http://groups.google.com/group/in-portal-bugs/browse_thread/thread/a9e77af1f2fd2295#
In kDBItem class we have method called Clear. It's goal is to reset item, so it should look like after it was recalled for the first time. But what Clear do not is resetting field options in item object. So, if you made modifications for the item like setting required option or something alike, it stays after Clear.
My suggestion is to add call of kDBBase method defineFields to Clear. It should reassign field properties from unit config, so the goal will be achieved.
TO THINK ABOUT: what other item object options should be reloaded by Clear method?