Fixed small bug item units db by @anoopmb.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 27 Jan 2019 14:57:06 +0000 (15:57 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 27 Jan 2019 14:57:06 +0000 (15:57 +0100)
inventory/includes/db/items_units_db.inc

index e1841f1cd8508a2fc8e1ae031639e5bd86fcae1f..208912c82fe06db79cbb75facdbcf5a34b0c3861 100644 (file)
@@ -43,7 +43,7 @@ function get_item_unit($unit)
 
 function get_unit_descr($unit)
 {
-       $sql = "SELECT description FROM ".TB_PREF."item_units WHERE abbr=".db_escape($unit);
+       $sql = "SELECT name FROM ".TB_PREF."item_units WHERE abbr=".db_escape($unit);
 
        $result = db_query($sql, "could not unit description");