Skip to content

Commit

Permalink
pagination fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bohollo committed Nov 20, 2019
1 parent 99f7c3a commit fb6282e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/admin/accions/admin_list_instances.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function render()
$p_mode = '';
$instances = [];
$menu = [];
$class_info = null;

if (Session::get('rol_id')==1 || $security->getAccess('browseable', $params)) {
$editora = new editoraModel();
Expand All @@ -40,7 +41,10 @@ public function render()
if ($params['param3']!="") {
$page = $params['param3'];
}
$class_info = $editora->get_class_info($params['param1']);

if ($params['param1'] != "") {
$class_info = $editora->get_class_info($params['param1']);
}

$instances = $this->instances->instanceList($params);
$count = $this->instances->instanceList_count($params);
Expand All @@ -55,6 +59,7 @@ public function render()
'count' => $count,
'page' => $page
]);

return response()->view('editora::pages.list_instances', $viewData);
}
}

0 comments on commit fb6282e

Please sign in to comment.