Commit 390c86d8 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #517 in ZP/z-push from...

Merge pull request #517 in ZP/z-push from bugfix/ZP-1198-hierarchy-cache-should-strip-data to develop

* commit '19cc91c5':
  ZP-1198 Data stripping needs to be done after all states are loaded.
parents 8d7bfc14 19cc91c5
...@@ -78,7 +78,6 @@ class ZPushAdmin { ...@@ -78,7 +78,6 @@ class ZPushAdmin {
try { try {
$device = new ASDevice($devid, ASDevice::UNDEFINED, $user, ASDevice::UNDEFINED); $device = new ASDevice($devid, ASDevice::UNDEFINED, $user, ASDevice::UNDEFINED);
$device->SetData(ZPush::GetStateMachine()->GetState($devid, IStateMachine::DEVICEDATA), false); $device->SetData(ZPush::GetStateMachine()->GetState($devid, IStateMachine::DEVICEDATA), false);
$device->StripData();
try { try {
// we need a StateManager for this operation // we need a StateManager for this operation
...@@ -128,6 +127,7 @@ class ZPushAdmin { ...@@ -128,6 +127,7 @@ class ZPushAdmin {
} }
} }
} }
$device->StripData();
return $device; return $device;
} }
catch (StateNotFoundException $e) { 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