From e19a5c903d3c521ce7a8a7c00359ddc8c24502f7 Mon Sep 17 00:00:00 2001 From: Skylar Date: Thu, 19 May 2016 00:27:55 -0600 Subject: [PATCH] updateitem now only checks for asset tag for assets --- updateitem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updateitem.php b/updateitem.php index 1380e3e..869448c 100644 --- a/updateitem.php +++ b/updateitem.php @@ -7,7 +7,7 @@ $from = $_POST['from']; require 'readfrom.php'; $id = $_POST['id']; -if (is_empty($_POST['asset_tag'])) { +if (is_empty($_POST['asset_tag']) && $from == 'assets') { sendError('Please fill in an asset tag.'); }