gnats-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to gnats/gnats/dbconfig.in


From: Yngve Svendsen
Subject: Changes to gnats/gnats/dbconfig.in
Date: Mon, 14 Oct 2002 15:00:35 -0400

Index: gnats/gnats/dbconfig.in
diff -c gnats/gnats/dbconfig.in:1.6 gnats/gnats/dbconfig.in:1.7
*** gnats/gnats/dbconfig.in:1.6 Tue Sep 24 15:37:33 2002
--- gnats/gnats/dbconfig.in     Mon Oct 14 15:00:35 2002
***************
*** 196,201 ****
--- 196,202 ----
        # Require that a reason be supplied when this field is edited.
        require-change-reason
      }
+ 
  #
  # Here's an example of how we would set the Closed-Date: field when the
  # State: field is changed to "closed".
***************
*** 203,211 ****
  # Note that a \ followed by a newline is ignored, and \n within strings
  # is translated to the EOL character.
  #
! # Only do the edit if the new State's type is "closed".
  #
!     on-change "State[type]==\"closed\"" {
  #
  #     Set the Closed-Date field to the current date.  (We can also
  #       use $OldValue and $NewValue here as well, in addition to any
--- 204,217 ----
  # Note that a \ followed by a newline is ignored, and \n within strings
  # is translated to the EOL character.
  #
! # Only do the edit if the new State's type is "closed" and if
! #    a) the previous State wasn't of type closed
! # or b) the Closed-Date is not yet defined
! # With this rule, we keep the Closed-Date if we change from a "closed"
! # state to another "closed" state.
  #
!     on-change "State[type]==\"closed\" \
!               & (oldpr:State[Type]!=\"closed\" | Closed-Date==\"\")" {
  #
  #     Set the Closed-Date field to the current date.  (We can also
  #       use $OldValue and $NewValue here as well, in addition to any
***************
*** 218,227 ****
      }
  
  #
! # If the old PR's State: field type is closed...then we want to clear
! # the Closed-Date field, because the new PR's state isn't closed anymore.
  #
!     on-change "oldpr:State[type]==\"closed\"" {
        #
        # Null it out.
        #
--- 224,233 ----
      }
  
  #
! # If the new PR's State: field type is not closed...then we want to clear
! # the Closed-Date field.
  #
!     on-change "State[type]!=\"closed\"" {
        #
        # Null it out.
        #




reply via email to

[Prev in Thread] Current Thread [Next in Thread]