Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Meta.git: make sure to apply node.change after revert operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Nov 16, 2016
1 parent d472eb0 commit cec749a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/plugins/meta.git/src/GitManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

use Pydio\Access\Core\AbstractAccessDriver;
use Pydio\Access\Core\Model\AJXP_Node;
use Pydio\Core\Controller\Controller;
use Pydio\Core\Model\ContextInterface;
use Pydio\Core\Services\LocaleService;
use Pydio\Core\Services\ApplicationState;
Expand Down Expand Up @@ -121,8 +122,10 @@ public function applyActions(\Psr\Http\Message\ServerRequestInterface $requestIn
$ctx = $requestInterface->getAttribute("ctx");
$this->commitChanges($ctx);
$diff = new \Pydio\Access\Core\Model\NodesDiff();
$diff->update(new AJXP_Node($ctx->getUrlBase().$file));
$node = new AJXP_Node($ctx->getUrlBase()."/".$file);
$diff->update($node);
$x->addChunk($diff);
Controller::applyHook("node.change", [$node, $node]);


break;
Expand Down

0 comments on commit cec749a

Please sign in to comment.