Skip to content

Commit

Permalink
pkp#8933 Event log is never updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Jun 2, 2023
1 parent 2f9ddea commit ed6f893
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
8 changes: 0 additions & 8 deletions classes/log/event/DAO.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,6 @@ public function insert(EventLogEntry $eventLog): int
return parent::_insert($eventLog);
}

/**
* @copydoc EntityDAO::update()
*/
public function update(EventLogEntry $eventLog)
{
parent::_update($eventLog);
}

/**
* @copydoc EntityDAO::delete()
*/
Expand Down
11 changes: 0 additions & 11 deletions classes/log/event/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,6 @@ public function add(EventLogEntry $logEntry): int
return $id;
}

/** @copydoc DAO::update() */
public function edit(EventLogEntry $logEntry, array $params)
{
$newLogEntry = clone $logEntry;
$newLogEntry->setAllData(array_merge($newLogEntry->_data, $params));

Hook::call('EventLog::edit', [$newLogEntry, $logEntry, $params]);

$this->dao->update($newLogEntry);
}

/** @copydoc DAO::delete() */
public function delete(EventLogEntry $logEntry)
{
Expand Down

0 comments on commit ed6f893

Please sign in to comment.