@@ 489-503 (lines=15) @@ | ||
486 | if (isset($_REQUEST['query']) && isset($rs) && is_object($rs) && $rs->recordCount() > 0) { |
|
487 | ||
488 | // Report views don't set a schema, so we need to disable create view in that case |
|
489 | if (isset($_REQUEST['schema'])) { |
|
490 | $navlinks['createview'] = [ |
|
491 | 'attr' => [ |
|
492 | 'href' => [ |
|
493 | 'url' => 'views.php', |
|
494 | 'urlvars' => array_merge($fields, [ |
|
495 | 'action' => 'create', |
|
496 | 'formDefinition' => $_REQUEST['query'], |
|
497 | ]), |
|
498 | ], |
|
499 | ], |
|
500 | 'content' => $lang['strcreateview'], |
|
501 | ]; |
|
502 | } |
|
503 | ||
504 | $urlvars = []; |
|
505 | if (isset($_REQUEST['search_path'])) { |
|
506 | $urlvars['search_path'] = $_REQUEST['search_path']; |
@@ 302-314 (lines=13) @@ | ||
299 | // Create view and download |
|
300 | if ($this->query !== '' && isset($rs) && is_object($rs) && $rs->recordCount() > 0) { |
|
301 | // Report views don't set a schema, so we need to disable create view in that case |
|
302 | if (isset($_REQUEST['schema'])) { |
|
303 | $navlinks['createview'] = [ |
|
304 | 'attr' => [ |
|
305 | 'href' => [ |
|
306 | 'url' => 'views.php', |
|
307 | 'urlvars' => array_merge($fields, [ |
|
308 | 'action' => 'create', |
|
309 | ]), |
|
310 | ], |
|
311 | ], |
|
312 | 'content' => $lang['strcreateview'], |
|
313 | ]; |
|
314 | } |
|
315 | ||
316 | if (isset($_REQUEST['search_path'])) { |
|
317 | $fields['search_path'] = $_REQUEST['search_path']; |