Skip to content

Commit

Permalink
#263 - fixed a broken link to edit a single tag record rendered incor…
Browse files Browse the repository at this point in the history
…rectly by the record selector widget
  • Loading branch information
alphadevx committed Feb 4, 2016
1 parent e999201 commit adb864e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor
*.db
/apidocs
2 changes: 1 addition & 1 deletion Alpha/View/Widget/RecordSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function render($expanded = false, $buttons = true)
// check to see if we are in the admin back-end
if (mb_strpos($URI, '/tk/') !== false) {
$viewURL = FrontController::generateSecureURL('act=Alpha\Controller\ActiveRecordController&ActiveRecordType='.get_class($obj).'&ActiveRecordOID='.$obj->getOID());
$editURL = FrontController::generateSecureURL('act=Alpha\Controller\ActiveRecordController&ActiveRecordType='.get_class($obj).'&ActiveRecordOID='.$obj->getOID().'/edit');
$editURL = FrontController::generateSecureURL('act=Alpha\Controller\ActiveRecordController&ActiveRecordType='.get_class($obj).'&ActiveRecordOID='.$obj->getOID().'&view=edit');
} else {
if (isset($customViewControllerName)) {
if ($config->get('app.use.mod.rewrite')) {
Expand Down

0 comments on commit adb864e

Please sign in to comment.