mirror of
https://github.com/itflow-org/itflow
synced 2026-03-25 14:55:38 +00:00
Merge pull request #974 from ssteeltm/master
Update client_file_link_asset_modal.php
This commit is contained in:
@@ -20,13 +20,6 @@
|
|||||||
<select class="form-control select2" name="asset_id">
|
<select class="form-control select2" name="asset_id">
|
||||||
<option value="">- Select an Asset -</option>
|
<option value="">- Select an Asset -</option>
|
||||||
<?php
|
<?php
|
||||||
// Check if there are any associated vendors
|
|
||||||
if (!empty($linked_assets)) {
|
|
||||||
$excluded_asset_ids = implode(",", $linked_assets);
|
|
||||||
$exclude_condition = "AND asset_id NOT IN ($excluded_asset_ids)";
|
|
||||||
} else {
|
|
||||||
$exclude_condition = ""; // No condition if there are no displayed vendors
|
|
||||||
}
|
|
||||||
|
|
||||||
$sql_assets_select = mysqli_query($mysqli, "SELECT * FROM assets
|
$sql_assets_select = mysqli_query($mysqli, "SELECT * FROM assets
|
||||||
WHERE asset_client_id = $client_id
|
WHERE asset_client_id = $client_id
|
||||||
|
|||||||
Reference in New Issue
Block a user