diff --git a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_initializeFastInput.xml b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_initializeFastInput.xml
index 8861f5e9fd48111df9c2a80fabbdce98215ee1e4..a9723dd42624fa060702fc3d192a5c41e32217d5 100644
--- a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_initializeFastInput.xml
+++ b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_initializeFastInput.xml
@@ -71,17 +71,22 @@ from string import zfill\n
 global portal_object, new_id, l\n
 \n
 portal_object = context.getPortalObject()\n
+\n
+if lines_num is None:\n
+  lines_num = portal_object.portal_preferences.getPreferredListboxListModeLineCount() or 40\n
+\n
 new_id = 0\n
 l = []\n
 \n
+\n
 # function to create a new fast input line\n
 def createInputLine():\n
   global portal_object, new_id, l\n
   new_id += 1\n
   int_len = 3\n
-  o = newTempBase( portal_object\n
-                 , str(new_id)\n
-                 , uid =\'new_%s\' % zfill(new_id, int_len)\n
+  o = newTempBase( portal_object,\n
+                   str(new_id),\n
+                   uid =\'new_%s\' % zfill(new_id, int_len)\n
                  )\n
   l.append(o)\n
 \n
@@ -107,7 +112,7 @@ return l\n
         </item>
         <item>
             <key> <string>_params</string> </key>
-            <value> <string>lines_num=7, **kw</string> </value>
+            <value> <string>lines_num=None, **kw</string> </value>
         </item>
         <item>
             <key> <string>errors</string> </key>
@@ -142,6 +147,7 @@ return l\n
                             <string>_getattr_</string>
                             <string>context</string>
                             <string>portal_object</string>
+                            <string>None</string>
                             <string>new_id</string>
                             <string>l</string>
                             <string>createInputLine</string>
@@ -160,7 +166,7 @@ return l\n
             <key> <string>func_defaults</string> </key>
             <value>
               <tuple>
-                <int>7</int>
+                <none/>
               </tuple>
             </value>
         </item>
diff --git a/bt5/erp5_project/bt/revision b/bt5/erp5_project/bt/revision
index 8be84ab6b426db47e608bd9a6caa4f99575fe2f0..e953fd4efb6e75f9bf318ddf6fb7e303eb1c9bea 100644
--- a/bt5/erp5_project/bt/revision
+++ b/bt5/erp5_project/bt/revision
@@ -1 +1 @@
-544
\ No newline at end of file
+545
\ No newline at end of file