1
1
Fork 0

Fixing tests

This commit is contained in:
Michael 2022-05-15 20:26:14 +00:00
parent 324cce7a19
commit d77b043d9c

View file

@ -38,14 +38,14 @@ class History
public static function add(int $uri_id, array $item)
{
$allfields = DBStructure::definition('', false);
$fields = array_keys($allfields['post-history']['fields']);
$fields = array_keys($allfields['post-history']['fields']);
$post = Post::selectFirstPost($fields, ['uri-id' => $uri_id]);
if (empty($post)) {
return;
}
$update = false;
$update = false;
$changed = DBStructure::getFieldsForTable('post-history', $item);
unset($changed['uri-id']);
unset($changed['edited']);