Commit 19cc91c5 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1198 Data stripping needs to be done after all states are loaded.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 9e4f0a3e
......@@ -78,7 +78,6 @@ class ZPushAdmin {
try {
$device = new ASDevice($devid, ASDevice::UNDEFINED, $user, ASDevice::UNDEFINED);
$device->SetData(ZPush::GetStateMachine()->GetState($devid, IStateMachine::DEVICEDATA), false);
$device->StripData();
try {
// we need a StateManager for this operation
......@@ -128,6 +127,7 @@ class ZPushAdmin {
}
}
}
$device->StripData();
return $device;
}
catch (StateNotFoundException $e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment