Skip to content
Permalink
Browse files

Fix reafctoring oversight

  • Loading branch information...
flack committed Jun 4, 2019
1 parent b594a85 commit 9144e485803c9c4d94fd5a0122e2de88e1ef310f
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/midgard/admin/asgard/handler/object/deleted.php
@@ -41,7 +41,7 @@ private function prepare_admin_view($guid)
{
$type = connection::get_em()
->createQuery('SELECT r.typename from midgard:midgard_repligard r WHERE r.guid = ?1')
->setParameter(1, $this->_request_data['guid'])
->setParameter(1, $guid)
->getSingleScalarResult();
$dba_type = midcom::get()->dbclassloader->get_midcom_class_name_for_mgdschema_object($type);
@@ -58,7 +58,7 @@ private function prepare_admin_view($guid)
MIDCOM_TOOLBAR_GLYPHICON => 'recycle',
MIDCOM_TOOLBAR_POST => true,
MIDCOM_TOOLBAR_POST_HIDDENARGS => [
'undelete[]' => $this->_request_data['guid']
'undelete[]' => $guid
]
]);
$this->_request_data['asgard_toolbar']->add_item([
@@ -67,7 +67,7 @@ private function prepare_admin_view($guid)
MIDCOM_TOOLBAR_GLYPHICON => 'trash',
MIDCOM_TOOLBAR_POST => true,
MIDCOM_TOOLBAR_POST_HIDDENARGS => [
'undelete[]' => $this->_request_data['guid'],
'undelete[]' => $guid,
'purge' => true
]
]);

0 comments on commit 9144e48

Please sign in to comment.
You can’t perform that action at this time.