Support » Plugin: Orbis » Projects: Automatic Comments by Orbis

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Remco Tolsma

    (@remcotolsma)

    Hi,

    thanks for the fast support. Now the message for un-/finishing a project is correct but if i make other changes to the project like removing a user, changing the time etc. the message is also created. Could you add a line which checks if the project is already open/closed, so we get only an auto-comment when the status changes?

    Edit:
    Is there also a possibility to create an auto-comment for time, person or any other changes?
    Like: Time was changed from ‘2:30’ to ‘4:00’ by <user>
    or: Involved Person was changed from ‘A’ to ‘B’ by <user>

    Thank you!

    Plugin Author Remco Tolsma

    (@remcotolsma)

    Now the message for un-/finishing a project is correct but if i make other changes to the project like removing a user, changing the time etc. the message is also created. Could you add a line which checks if the project is already open/closed, so we get only an auto-comment when the status changes?

    We just launched version 1.3.2 with an fix for this.

    Edit:
    Is there also a possibility to create an auto-comment for time, person or any other changes?
    Like: Time was changed from ‘2:30’ to ‘4:00’ by <user>
    or: Involved Person was changed from ‘A’ to ‘B’ by <user>

    Technically this is possible, we will put it on the list of ideas. I however don’t expect we will add this very soon.

    your new versions seems to contain bad code.

    As far as i can seen there is no ‘bad code’ in the Orbis plugin. Since only ‘Bkav’ is giving an warning i assume it’s false alarm.

    Hello again,

    first of all i’d like to thank you again for the fast updates 🙂

    As far as i can seen there is no ‘bad code’ in the Orbis plugin. Since only ‘Bkav’ is giving an warning i assume it’s false alarm.

    I assume you’re right with the false alarm.

    Now the message for un-/finishing a project is correct but if i make other changes to the project like removing a user, changing the time etc. the message is also created. Could you add a line which checks if the project is already open/closed, so we get only an auto-comment when the status changes?

    We just launched version 1.3.2 with an fix for this.

    The issue is still active. No matter which changes are made, the auto comment only gives the ‘opened’ / ‘finished’ message. My question was, if you can suppress these status comments when no change was taken on the status.

    Thanks again,

    Dave

    Plugin Author Remco Tolsma

    (@remcotolsma)

    I can’t reproduce this problem, the comment is only placed if the status is changed:
    https://github.com/wp-orbis/wp-orbis/blob/1.3.2/includes/projects.php#L225-L229

    // Action
    if ( 'publish' === $post->post_status && $is_finished_old !== $is_finished_new ) {
    	// @see https://github.com/woothemes/woocommerce/blob/v2.1.4/includes/class-wc-order.php#L1274
    	do_action( 'orbis_project_finished_update', $post_id, $is_finished_new );
    }

    yes you’re right. i messed up the code. Thanks for feedback anyway!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Projects: Automatic Comments by Orbis’ is closed to new replies.