Update item withough password fixes #1493

This commit is contained in:
Chris Hunt
2025-09-10 15:17:46 +01:00
parent cd95fc3b92
commit d6f813ccbf

View File

@@ -312,7 +312,11 @@ class ItemController extends Controller
$storedConfigObject = json_decode($storedItem->getAttribute('description'));
$configObject = json_decode($config);
$configObject->password = $storedConfigObject->password;
if ($storedConfigObject && property_exists($storedConfigObject, 'password')) {
$configObject->password = $storedConfigObject->password;
} else {
$configObject->password = null;
}
$config = json_encode($configObject);
}