[otrs-cvs] ITSMConfigItem/Kernel/Output/HTML ITSMConfigItemLayoutText.pm, 1.15, 1.16

cvs-log at otrs.org cvs-log at otrs.org
Tue Feb 5 11:43:16 GMT 2008


Comments:
Update of /home/cvs/ITSMConfigItem/Kernel/Output/HTML
In directory lancelot:/tmp/cvs-serv12514/Kernel/Output/HTML

Modified Files:
	ITSMConfigItemLayoutText.pm 
Log Message:
Improved InputCreate() function.

Author: mh

Index: ITSMConfigItemLayoutText.pm
===================================================================
RCS file: /home/cvs/ITSMConfigItem/Kernel/Output/HTML/ITSMConfigItemLayoutText.pm,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** ITSMConfigItemLayoutText.pm	30 Jan 2008 14:44:17 -0000	1.15
--- ITSMConfigItemLayoutText.pm	5 Feb 2008 11:43:10 -0000	1.16
***************
*** 160,168 ****
      }
  
      my $Size = $Param{Item}->{Input}->{Size} || 40;
      my $String = "<input type=\"Text\" name=\"$Param{Key}\" size=\"$Size\" ";
  
!     if ( $Param{Value} || $Param{Item}->{Input}->{ValueDefault} ) {
!         my $Value = $Param{Value} || $Param{Item}->{Input}->{ValueDefault};
  
          # translate
--- 160,168 ----
      }
  
+     my $Value = $Param{Value} || $Param{Item}->{Input}->{ValueDefault};
      my $Size = $Param{Item}->{Input}->{Size} || 40;
      my $String = "<input type=\"Text\" name=\"$Param{Key}\" size=\"$Size\" ";
  
!     if ($Value) {
  
          # translate
***************
*** 176,184 ****
--- 176,188 ----
              HTMLResultMode => 1,
          );
+ 
          $String .= "value=\"$Value\" ";
      }
+ 
+     # add maximum length
      if ( $Param{Item}->{Input}->{MaxLength} ) {
          $String .= "maxlength=\"$Param{Item}->{Input}->{MaxLength}\" ";
      }
+ 
      $String .= "> ";
  


More information about the cvs-log mailing list