From d53dcfadc6ef5041cd02602402207c5d7d91dca0 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 28 Jan 2014 11:03:05 +0000 Subject: [PATCH] Show only the correct vendor on the device edit page. --- app/devices/device_edit.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index d33037d8de..0aed1cba21 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -251,6 +251,12 @@ require_once "resources/require.php"; unset ($prep_statement); } +//use the mac address to get the vendor + if (strlen($device_vendor) == 0) { + $template_array = explode("/", $device_template); + $device_vendor = $template_array[0]; + } + //set the sub array index $x = "999"; @@ -625,10 +631,15 @@ require_once "resources/require.php";