Browse Source

[FIX] switch_to_addon

experimental
Georgi Hristov 2 years ago
parent
commit
835b3df0de
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/Utils/RecordBrowser/RecordBrowser_0.php

+ 3
- 1
modules/Utils/RecordBrowser/RecordBrowser_0.php View File

@@ -950,8 +950,10 @@ class Utils_RecordBrowser extends Module {
public function view_entry_with_REQUEST($mode='view', $id = null, $defaults = array(), $show_actions=true, $request=array()) {
foreach ($request as $k=>$v)
$_REQUEST[$k] = $v;
if(isset($_REQUEST['switch_to_addon']))
if(isset($_REQUEST['switch_to_addon'])) {
$this->switch_to_addon = $this->get_module_variable('switch_to_addon',$_REQUEST['switch_to_addon']);
unset($_REQUEST['switch_to_addon']);
}
return $this->view_entry($mode, $id, $defaults, $show_actions);
}
public function view_entry($mode='view', $id = null, $defaults = array(), $show_actions=true) {


Loading…
Cancel
Save