mirror of https://github.com/itflow-org/itflow
Fix Empty col in client overview if no fabvorite assets, fix creds page rename var from important to favorite
This commit is contained in:
parent
65d1f59e9b
commit
91aba13c0d
|
|
@ -297,9 +297,10 @@ $sql_asset_retired = mysqli_query(
|
|||
|
||||
</div>
|
||||
|
||||
<?php if (mysqli_num_rows($sql_favorite_assets) > 0) { ?>
|
||||
|
||||
<div class="col-md-4">
|
||||
|
||||
<?php if (mysqli_num_rows($sql_favorite_assets) > 0) { ?>
|
||||
<div class="card card-dark mb-3">
|
||||
<div class="card-header">
|
||||
<h5 class="card-title"><i class="fas fa-fw fa-star mr-2"></i>Favorite Assets</h5>
|
||||
|
|
@ -332,10 +333,11 @@ $sql_asset_retired = mysqli_query(
|
|||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if (mysqli_num_rows($sql_shared_items) > 0) { ?>
|
||||
|
||||
<div class="col-md-4">
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ $sql = mysqli_query(
|
|||
$access_permission_query
|
||||
$client_query
|
||||
GROUP BY c.credential_id
|
||||
ORDER BY c.credential_important DESC, $sort $order LIMIT $record_from, $record_to"
|
||||
ORDER BY c.credential_favorite DESC, $sort $order LIMIT $record_from, $record_to"
|
||||
);
|
||||
|
||||
$num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
|
|
@ -331,7 +331,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
$credential_note = nullable_htmlentities($row['credential_note']);
|
||||
$credential_created_at = nullable_htmlentities($row['credential_created_at']);
|
||||
$credential_archived_at = nullable_htmlentities($row['credential_archived_at']);
|
||||
$credential_important = intval($row['credential_important']);
|
||||
$credential_favorite = intval($row['credential_favorite']);
|
||||
$credential_contact_id = intval($row['credential_contact_id']);
|
||||
$contact_name = nullable_htmlentities($row['contact_name']);
|
||||
$credential_asset_id = intval($row['credential_asset_id']);
|
||||
|
|
@ -407,7 +407,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
|
||||
?>
|
||||
<tr class="<?php if (!empty($credential_important)) { echo "text-bold"; } ?>">
|
||||
<tr class="<?php if ($credential_favorite) { echo "text-bold"; } ?>">
|
||||
<td class="pr-0">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="credential_ids[]" value="<?php echo $credential_id ?>">
|
||||
|
|
|
|||
Loading…
Reference in New Issue