Limit editable stock items list in Sales Order, Credit Notes to 50 chars.
[fa-stable.git] / includes / ui / ui_lists.inc
index de027627997b4366a5a21a1f0c0da6e17e704a8e..55ef6777d5d004a40c4fbcfa8c82cadde687713c 100644 (file)
@@ -944,7 +944,7 @@ function sales_items_list_cells($label, $name, $selected_id=null, $all_option=fa
        if ($label != null)
                echo "<td>$label</td>\n";
        echo sales_items_list($name, $selected_id, $all_option, $submit_on_change,
-               '', array('cells'=>true));
+               '', array('cells'=>true, 'max'=>50)); // maximum is set to 50 and not default 255.
 }
 
 function sales_kits_list($name, $selected_id=null, $all_option=false, $submit_on_change=false)