updateitem now only checks for asset tag for assets

This commit is contained in:
Skylar Ittner 2016-05-19 00:27:55 -06:00
parent 190cd221a9
commit e19a5c903d

View File

@ -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.');
}