snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Undefined variable: checkModel

Open kylevitale opened this issue 11 years ago • 0 comments

Since updating to 1.2.6.1 yesterday I receive this message anytime I create/edit an asset.

Undefined variable: checkModel

for file app/controllers/admin/AssetsController.php:

if (e(Input::get('rtd_location_id')) == '') { $asset->rtd_location_id = NULL; } else { $asset->rtd_location_id = e(Input::get('rtd_location_id')); }

        $asset->mac_address = ($checkModel == true) ? e(Input::get('mac_address')) : NULL;

        // Save the asset data

A bunch of other php files also through a checkModel exception.

kylevitale avatar Apr 01 '15 14:04 kylevitale