Page 1 of 1

automation event DELETE PROPERTY GROUP

PostPosted:Thu Aug 04, 2016 5:18 pm
by khpavel
Hello!

I found automation events ADD PROPERTY GROUP and SET PROPERTY GROUP
I didn't find event DELETE PROPERTY GROUP
Does it exists?
And how can i add it?

Re: automation event DELETE PROPERTY GROUP

PostPosted:Fri Aug 05, 2016 11:43 am
by jllort
It does not exists, but you can introduce it in the source code. Confirm to me if you are interested on it and I will guide you about how doing it.

Re: automation event DELETE PROPERTY GROUP

PostPosted:Fri Aug 05, 2016 5:12 pm
by khpavel
Hello, jllort!

I've already done it.
I've added new event REMOVE_PROPERTY_GROUP. It was not difficult.

I can give my code to add it into future releases of OPENKM community.

Re: automation event DELETE PROPERTY GROUP

PostPosted:Sat Aug 06, 2016 3:03 pm
by jllort
Two options:
- Add a ticket at jira.openkm.com with the patch
- Add the pach here

And we will review it.

In nearly future we will migrate to git, and then users will be able to create their own forks and ask for pull request. More confortable for everybody.

Re: automation event DELETE PROPERTY GROUP

PostPosted:Mon Aug 08, 2016 8:27 am
by khpavel
Hello!

Here are changed sources.
Added code is commented with "added by Khpavel"
Changes sources
(16.9 KiB) Downloaded 250 times

Re: automation event DELETE PROPERTY GROUP

PostPosted:Mon Aug 08, 2016 8:28 am
by khpavel
Events added:
EVENT_PROPERTY_GROUP_REMOVE
EVENT_DOCUMENT_DELETE
EVENT_DOCUMENT_RENAME

Re: automation event DELETE PROPERTY GROUP

PostPosted:Wed Aug 10, 2016 4:35 pm
by jllort
When will be finished with it, we will notice to you.