[rt-users] default values

Jesse jesse at fsck.com
Thu Feb 22 22:01:21 EST 2001


in lib/rt/ui/web/manipulate.pm, there's a sub called InitDisplay.
just after the #display a default queue comments, you can place
whatever form values you want in there.

For reference, here's 1.0.7's InitDisplay:

sub InitDisplay {
  
  if (!($frames) && (!$rt::ui::web::FORM{'display'})) {
    
    if ($serial_num > 0 || $rt::ui::web::FORM{'do_req_create'}) {       
      $rt::ui::web::FORM{'display'} = "History";
    }
    else{
      
      #display a default queue
      #$rt::ui::web::FORM{'q_unowned'}='true';
      #$rt::ui::web::FORM{'q_owned_by_me'}='true';
      $rt::ui::web::FORM{'q_status'}='open';
      $rt::ui::web::FORM{'q_by_date_due'}='true';
      $rt::ui::web::FORM{'display'} = "Queue";
    }
    }
    
    if ($frames) {
          if (!($rt::ui::web::FORM{'display'}) and 
              !($rt::ui::web::FORM{'serial_num'} ) and
              !($rt::ui::web::FORM{'queue_id'}) ) {      
        &frame_display_queue();
      }
      
    }
 


}



On Fri, Feb 23, 2001 at 11:45:38AM +0900, Kazu Kimura wrote:
> Hi,
> 
> I have a question.
> 
> When I login rt, I see tickets with open status.  It seems to me the
> default condition after login will be;
> 
> Status  : open
> Queue   : any
> Refresh : Never
> 
> I would like to know how to change the default values.
> 
> Thanks in advance.
> 
> - - - - - - - - - - - - - - - - - - - 
> Kazu Kimura <kimura at ctc.ad.jp>
> IP Network tech. dep. CTC
> Phone +81-52-740-8101
> Fax   +81-52-740-8935
> - - - - - - - - - - - - - - - - - - - -
> 
> 
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
> 

-- 
jesse reed vincent -- root at eruditorum.org -- jesse at fsck.com 
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

autoconf is your friend until it mysteriously stops working, at which 
point it is a snarling wolverine attached to your genitals by its teeth
 (that said, it's better than most of the alternatives)  -- Nathan Mehl




More information about the rt-users mailing list