soft-limit package names to 50 chars to avoid problems with typeset invoices, RT...
authorivan <ivan>
Mon, 22 Dec 2008 21:16:55 +0000 (21:16 +0000)
committerivan <ivan>
Mon, 22 Dec 2008 21:16:55 +0000 (21:16 +0000)
httemplate/edit/part_pkg.cgi
httemplate/edit/quick-charge.html

index 8fd3ed3..f79e759 100755 (executable)
@@ -50,7 +50,7 @@
                               { field     => 'pkg',
                                 type      => 'text',
                                 size      => 40, #32
-                                maxlength => 60,
+                                maxlength => 50,
                               },
                               {field=>'comment',  type=>'text', size=>40 }, #32
                               {field=>'classnum', type=>'select-pkg_class' },
index cbf1dcb..8f376a5 100644 (file)
@@ -88,7 +88,7 @@ function validate_quick_charge () {
 <TR>
   <TD>Description:</TD>
   <TD>
-    <INPUT TYPE="text" NAME="pkg" SIZE="60" MAXLENGTH="65" VALUE="<% $pkg %>" onChange="enable_quick_charge()" onKeyPress="enable_quick_charge()">
+    <INPUT TYPE="text" NAME="pkg" SIZE="50" MAXLENGTH="50" VALUE="<% $pkg %>" onChange="enable_quick_charge()" onKeyPress="enable_quick_charge()">
   </TD>
 </TR>