Feature 5388: Print Invoices (documents) list gets too long. Fixed by default 180...
[fa-stable.git] / inventory / manage / item_units.php
index 249c09d252b2a42a75790fbb76fac0f0a4bf4f56..af46ad54f35e7384abf849e328d86e02f4dfa980 100644 (file)
@@ -90,7 +90,7 @@ if ($Mode == 'RESET')
 $result = get_all_item_units(check_value('show_inactive'));
 
 start_form();
-start_table(TABLESTYLE, "width=40%");
+start_table(TABLESTYLE, "width='40%'");
 $th = array(_('Unit'), _('Description'), _('Decimals'), "", "");
 inactive_control_column($th);
 
@@ -105,7 +105,7 @@ while ($myrow = db_fetch($result))
        label_cell($myrow["abbr"]);
        label_cell($myrow["name"]);
        label_cell(($myrow["decimals"]==-1?_("User Quantity Decimals"):$myrow["decimals"]));
-       $id = htmlentities($myrow["abbr"]);
+       $id = html_specials_encode($myrow["abbr"]);
        inactive_control_cell($id, $myrow["inactive"], 'item_units', 'abbr');
        edit_button_cell("Edit".$id, _("Edit"));
        delete_button_cell("Delete".$id, _("Delete"));
@@ -149,4 +149,3 @@ end_form();
 
 end_page();
 
-?>