Making WordPress.org


Ignore:
Timestamp:
05/07/2015 07:32:34 PM (9 years ago)
Author:
ocean90
Message:

Trac Notifications: (Un)check the new ticket notification when the status has been changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications.php

    r1186 r1549  
    378378        if ( count( $previous_tickets ) >= 5 ) {
    379379            return;
    380         }   
     380        }
    381381
    382382        if ( 1 == count( $previous_tickets ) ) {
     
    442442            }
    443443            if ( empty( $_POST['notifications']['newticket'] ) && ! empty( $notifications['newticket'] ) ) {
    444                     $this->trac->delete( '_notifications', array( 'username' => $username, 'type' => 'newticket' ) );
     444                $this->trac->delete( '_notifications', array( 'username' => $username, 'type' => 'newticket' ) );
     445                $notifications[ 'newticket' ] = false;
    445446            } elseif ( ! empty( $_POST['notifications']['newticket'] ) && empty( $notifications['newticket'] ) ) {
    446447                $this->trac->insert( '_notifications', array( 'username' => $username, 'type' => 'newticket', 'value' => '1' ) );
     448                $notifications[ 'newticket' ] = true;
    447449            }
    448450        }
     
    476478            width: 25%;
    477479            list-style: none;
    478         }   
     480        }
    479481        .completed-milestone {
    480482            display: none !important;
Note: See TracChangeset for help on using the changeset viewer.