mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Added asset description to the API for create and update
This commit is contained in:
@@ -9,6 +9,14 @@ if (isset($_POST['asset_name'])) {
|
||||
$name = '';
|
||||
}
|
||||
|
||||
if (isset($_POST['asset_description'])) {
|
||||
$description = sanitizeInput($_POST['asset_description']);
|
||||
} elseif (isset($asset_row) && isset($asset_row['asset_description'])) {
|
||||
$description = $asset_row['asset_description'];
|
||||
} else {
|
||||
$description = '';
|
||||
}
|
||||
|
||||
if (isset($_POST['asset_type'])) {
|
||||
$type = sanitizeInput($_POST['asset_type']);
|
||||
} elseif (isset($asset_row) && isset($asset_row['asset_type'])) {
|
||||
|
||||
Reference in New Issue
Block a user