Skip to content

Commit

Permalink
fixing history panel actions (links for "view" and "restore") (#1493)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitshiftersgmbh committed Apr 9, 2024
1 parent 460ebd1 commit 4c4ddf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/manager/pages/data_history.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,12 @@
});

$list->addColumn('view', '<i class="rex-icon fa-eye"></i> ' . rex_i18n::msg('yform_history_view'), -1, ['<th></th>', '<td class="rex-table-action">###VALUE###</td>']);
$list->setColumnParams('view', ['subfunc' => 'view', 'data_id' => '###dataset_id###', 'history_id' => '###id###']);
$list->setColumnParams('view', ['subfunc' => 'view', 'data_id' => '###dataset_id###', 'history_id' => '###hid###']);
$list->addLinkAttribute('view', 'data-toggle', 'modal');
$list->addLinkAttribute('view', 'data-target', '#rex-yform-history-modal');

$list->addColumn('restore', '<i class="rex-icon fa-undo"></i> ' . rex_i18n::msg('yform_history_restore'), -1, ['<th></th>', '<td class="rex-table-action">###VALUE###</td>']);
$list->setColumnParams('restore', ['subfunc' => 'restore', 'data_id' => '###dataset_id###', 'history_id' => '###id###'] + rex_csrf_token::factory($_csrf_key)->getUrlParams());
$list->setColumnParams('restore', ['subfunc' => 'restore', 'data_id' => '###dataset_id###', 'history_id' => '###hid###'] + rex_csrf_token::factory($_csrf_key)->getUrlParams());

$content = $list->get();

Expand Down

0 comments on commit 4c4ddf6

Please sign in to comment.