From 48acd204f14754df08ae2e42e22f059738057422 Mon Sep 17 00:00:00 2001 From: jekkos-t520 Date: Thu, 2 Oct 2014 23:26:29 +0200 Subject: [PATCH] Show stock location names in employee form --- application/views/employees/form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/employees/form.php b/application/views/employees/form.php index 1fe92dd05..03d928f69 100644 --- a/application/views/employees/form.php +++ b/application/views/employees/form.php @@ -68,7 +68,7 @@ foreach($all_modules->result() as $module) if (sizeof($exploded_submodule_id) > 1 && $exploded_submodule_id[0] == $module->module_id) { $lang_line = $this->lang->line('reports_'.$exploded_submodule_id[1]); - $lang_line = empty($lang_line) ? $exploded_submodule_id[1] : $lang_line; + $lang_line = empty($lang_line) ? $this->Stock_locations->get_location_name(substr($exploded_submodule_id[1], -1)) : $lang_line; ?>