[otrs-cvs] CVS: Calendar/Kernel/Modules AgentCalendar.pm,1.13,1.14

cvs-log at otrs.org cvs-log at otrs.org
Fri Jan 5 10:45:05 CET 2007


Update of /home/cvs/Calendar/Kernel/Modules
In directory lancelot:/tmp/cvs-serv3945/Kernel/Modules

Modified Files:
	AgentCalendar.pm 
Log Message:
just show created/changed infos if exists

Index: AgentCalendar.pm
===================================================================
RCS file: /home/cvs/Calendar/Kernel/Modules/AgentCalendar.pm,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** AgentCalendar.pm	4 Jan 2007 18:59:29 -0000	1.13
--- AgentCalendar.pm	5 Jan 2007 09:45:03 -0000	1.14
***************
*** 396,420 ****
          );
          # created
!         my %CreateBy = $Self->{UserObject}->GetUserData(
!             UserID => $Event{CreateBy},
!         );
!         $Self->{LayoutObject}->Block(
!             Name => 'UpdateCreated',
!             Data => {
!                 %Event,
!                 %CreateBy,
!             },
!         );
          # changed
!         my %ChangeBy = $Self->{UserObject}->GetUserData(
!             UserID => $Event{ChangeBy},
!         );
!         $Self->{LayoutObject}->Block(
!             Name => 'UpdateChanged',
!             Data => {
!                 %Event,
!                 %ChangeBy,
!             },
!         );
          # generate output
          my $Output = $Self->{LayoutObject}->Header(Title => 'Edit');
--- 396,424 ----
          );
          # created
!         if ($Event{CreateBy}) {
!             my %CreateBy = $Self->{UserObject}->GetUserData(
!                 UserID => $Event{CreateBy},
!             );
!             $Self->{LayoutObject}->Block(
!                 Name => 'UpdateCreated',
!                 Data => {
!                     %Event,
!                     %CreateBy,
!                 },
!             );
!         }
          # changed
!         if ($Event{ChangeBy}) {
!             my %ChangeBy = $Self->{UserObject}->GetUserData(
!                 UserID => $Event{ChangeBy},
!             );
!             $Self->{LayoutObject}->Block(
!                 Name => 'UpdateChanged',
!                 Data => {
!                     %Event,
!                     %ChangeBy,
!                 },
!             );
!         }
          # generate output
          my $Output = $Self->{LayoutObject}->Header(Title => 'Edit');



More information about the cvs-log mailing list