mirror of
https://github.com/itflow-org/itflow
synced 2026-03-19 04:04:51 +00:00
Automatically select the current asset in asset details whjen creating a recurring or regular ticket
This commit is contained in:
@@ -190,7 +190,12 @@
|
|||||||
$asset_id_select = intval($row['asset_id']);
|
$asset_id_select = intval($row['asset_id']);
|
||||||
$asset_name_select = nullable_htmlentities($row['asset_name']);
|
$asset_name_select = nullable_htmlentities($row['asset_name']);
|
||||||
?>
|
?>
|
||||||
<option value="<?php echo $asset_id_select; ?>"><?php echo $asset_name_select; ?></option>
|
<option value="<?php echo $asset_id_select; ?>"
|
||||||
|
<?php if (isset($_GET['asset_id']) && $asset_id_select == $_GET['asset_id']) { echo "selected"; }
|
||||||
|
?>
|
||||||
|
|
||||||
|
><?php echo $asset_name_select; ?>
|
||||||
|
</option>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -294,7 +294,10 @@
|
|||||||
$asset_name_select = nullable_htmlentities($row['asset_name']);
|
$asset_name_select = nullable_htmlentities($row['asset_name']);
|
||||||
$asset_contact_name_select = nullable_htmlentities($row['contact_name']);
|
$asset_contact_name_select = nullable_htmlentities($row['contact_name']);
|
||||||
?>
|
?>
|
||||||
<option value="<?php echo $asset_id_select; ?>"><?php echo "$asset_name_select - $asset_contact_name_select"; ?></option>
|
<option value="<?php echo $asset_id_select; ?>"
|
||||||
|
<?php if (isset($_GET['asset_id']) && $asset_id_select == $_GET['asset_id']) { echo "selected"; }
|
||||||
|
?>
|
||||||
|
><?php echo "$asset_name_select - $asset_contact_name_select"; ?></option>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Reference in New Issue
Block a user