This commit is contained in:
mariano
2026-06-03 14:03:43 +02:00
parent 7fb79c9552
commit 906f308f50
2 changed files with 1 additions and 18 deletions
+1
View File
@@ -74,3 +74,4 @@ In una nuova installazione del plugin, i campi "API username" e "API password" n
7. **README.md** creato
8. **PURGE right**: Aggiunto PURGE ai diritti di installazione (`Profile.php:76,90`); applicato a tutti i profili Super-Admin esistenti nel DB
9. **CSRF GLPI 11 fix**: `Session::checkCSRF()` richiede `$_POST` come argomento in GLPI 11; aggiunto `X-Glpi-Csrf-Token` header al JS AJAX
10. **Session::isDebugActive()**: Metodo inesistente in GLPI 11; sostituito in `AssetTab.php:150` con `($_SESSION['glpi_use_mode'] ?? Session::NORMAL_MODE) === Session::DEBUG_MODE`
-18
View File
@@ -147,24 +147,6 @@ class AssetTab extends CommonDBTM
echo "<td colspan='2'>";
echo "<div class='alert alert-warning'>";
echo htmlspecialchars(__('No UrBackup server available for the root location of this asset.', 'urbackup'));
if (Session::isDebugActive()) {
$loc_id = LocationHelper::getAssetLocationId($item);
$root_id = LocationHelper::getRootLocationIdForAsset($item);
echo "<br><small class='text-muted'>";
echo "Asset locations_id: " . htmlspecialchars((string) $loc_id);
echo " | Root location ID: " . htmlspecialchars((string) $root_id);
echo " | glpi_plugin_urbackup_servers with this root ID + is_active=1: ";
global $DB;
$count = $DB->request([
'FROM' => Server::getTable(),
'WHERE' => [
'locations_id' => $root_id,
'is_active' => 1,
],
]);
echo htmlspecialchars((string) count($count));
echo "</small>";
}
echo "</div>";
echo "</td>";
echo "</tr>";