Skip to content

Commit

Permalink
Fix: some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Apr 18, 2018
1 parent ff76e60 commit a4cd087
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions htdocs/public/ticketsup/list.php
Expand Up @@ -82,7 +82,7 @@
}

if (!$error) {
$ret = $object->fetch('', $track_id);
$ret = $object->fetch('', '', $track_id);
if ($ret && $object->dao->id > 0) {
// vérifie si l'adresse email est bien dans les contacts du ticket
$contacts = $object->dao->liste_contact(-1, 'external');
Expand Down Expand Up @@ -263,9 +263,7 @@
$limit = $conf->liste_limit;

$page = GETPOST("page", 'int');
if ($page == -1) {
$page = 0;
}
if (empty($page) || $page == -1) { $page = 0; } // If $page is not defined, or '' or -1
$offset = $limit * $page;
$pageprev = $page - 1;
$pagenext = $page + 1;
Expand Down
4 changes: 2 additions & 2 deletions htdocs/public/ticketsup/view.php
Expand Up @@ -80,7 +80,7 @@
}

if (!$error) {
$ret = $object->fetch('', $track_id);
$ret = $object->fetch('', '', $track_id);
if ($ret && $object->dao->id > 0) {
// vérifie si l'adresse email est bien dans les contacts du ticket
$contacts = $object->dao->liste_contact(-1, 'external');
Expand Down Expand Up @@ -253,7 +253,7 @@
$formticket->withfile = 2;
$formticket->showMessageForm('100%');
} else {
print '<form method="post" id="form_view_ticket_list" name="form_view_ticket_list" enctype="multipart/form-data" action="' . dol_buildpath('/ticketsup/public/list.php', 1) . '">';
print '<form method="post" id="form_view_ticket_list" name="form_view_ticket_list" enctype="multipart/form-data" action="' . dol_buildpath('/public/ticketsup/list.php', 1) . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="view_ticketlist">';
print '<input type="hidden" name="track_id" value="'.$object->dao->track_id.'">';
Expand Down

0 comments on commit a4cd087

Please sign in to comment.