Merge branch 'develop' into ticketsup_core
This commit is contained in:
commit
2464fadf03
@ -224,7 +224,7 @@ if ($action == 'view' || $action == 'add_message' || $action == 'close' || $acti
|
|||||||
$object->dao->label .= $object->dao->origin_email . ' <small>(' . $langs->trans("TicketEmailOriginIssuer") . ')</small>';
|
$object->dao->label .= $object->dao->origin_email . ' <small>(' . $langs->trans("TicketEmailOriginIssuer") . ')</small>';
|
||||||
}
|
}
|
||||||
$linkback = '<a href="' . dol_buildpath('/ticketsup/list.php', 1) . '"><strong>' . $langs->trans("BackToList") . '</strong></a> ';
|
$linkback = '<a href="' . dol_buildpath('/ticketsup/list.php', 1) . '"><strong>' . $langs->trans("BackToList") . '</strong></a> ';
|
||||||
$object->dao->ticketsup_banner_tab('ref', '', ($user->societe_id ? 0 : 1), 'ref', 'subject', '', '', '', $morehtmlleft, $linkback);
|
$object->dao->ticketsupBannerTab('ref', '', ($user->societe_id ? 0 : 1), 'ref', 'subject', '', '', '', $morehtmlleft, $linkback);
|
||||||
|
|
||||||
print '<div class="fichecenter"><div class="fichehalfleft">';
|
print '<div class="fichecenter"><div class="fichehalfleft">';
|
||||||
print '<div class="underbanner clearboth"></div>';
|
print '<div class="underbanner clearboth"></div>';
|
||||||
|
|||||||
@ -1925,7 +1925,7 @@ class Ticketsup extends CommonObject
|
|||||||
$sql = "UPDATE " . MAIN_DB_PREFIX . "ticketsup";
|
$sql = "UPDATE " . MAIN_DB_PREFIX . "ticketsup";
|
||||||
$sql .= " SET fk_soc = " . ($id > 0 ? $id : "null");
|
$sql .= " SET fk_soc = " . ($id > 0 ? $id : "null");
|
||||||
$sql .= " WHERE rowid = " . $this->id;
|
$sql .= " WHERE rowid = " . $this->id;
|
||||||
dol_syslog(get_class($this) . '::set_customer sql=' . $sql);
|
dol_syslog(get_class($this) . '::setCustomer sql=' . $sql);
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if ($resql) {
|
if ($resql) {
|
||||||
return 1;
|
return 1;
|
||||||
@ -2082,6 +2082,7 @@ class Ticketsup extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* Return id of all contacts for ticket
|
* Return id of all contacts for ticket
|
||||||
*
|
*
|
||||||
|
* @return array Array of contacts for tickets
|
||||||
*/
|
*/
|
||||||
public function getTicketAllContacts()
|
public function getTicketAllContacts()
|
||||||
{
|
{
|
||||||
@ -2394,7 +2395,7 @@ class Ticketsup extends CommonObject
|
|||||||
* @param string $morehtmlright More html code to show before navigation arrows
|
* @param string $morehtmlright More html code to show before navigation arrows
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function ticketsup_banner_tab($paramid, $morehtml = '', $shownav = 1, $fieldid = 'id', $fieldref = 'ref', $morehtmlref = '', $moreparam = '', $nodbprefix = 0, $morehtmlleft = '', $morehtmlright = '')
|
public function ticketsupBannerTab($paramid, $morehtml = '', $shownav = 1, $fieldid = 'id', $fieldref = 'ref', $morehtmlref = '', $moreparam = '', $nodbprefix = 0, $morehtmlleft = '', $morehtmlright = '')
|
||||||
{
|
{
|
||||||
global $conf, $form, $user, $langs;
|
global $conf, $form, $user, $langs;
|
||||||
|
|
||||||
|
|||||||
@ -155,7 +155,7 @@ if ($id > 0 || !empty($track_id) || !empty($ref)) {
|
|||||||
$object->label .= $fuser->getNomUrl(0);
|
$object->label .= $fuser->getNomUrl(0);
|
||||||
}
|
}
|
||||||
$linkback = '<a href="' . dol_buildpath('/ticketsup/list.php', 1) . '"><strong>' . $langs->trans("BackToList") . '</strong></a> ';
|
$linkback = '<a href="' . dol_buildpath('/ticketsup/list.php', 1) . '"><strong>' . $langs->trans("BackToList") . '</strong></a> ';
|
||||||
$object->ticketsup_banner_tab('ref', '', ($user->societe_id ? 0 : 1), 'ref', 'subject', '', '', '', $morehtmlleft, $linkback);
|
$object->ticketsupBannerTab('ref', '', ($user->societe_id ? 0 : 1), 'ref', 'subject', '', '', '', $morehtmlleft, $linkback);
|
||||||
|
|
||||||
dol_fiche_end();
|
dol_fiche_end();
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|||||||
@ -133,7 +133,7 @@ if ($object->id) {
|
|||||||
$object->label .= $fuser->getNomUrl(0);
|
$object->label .= $fuser->getNomUrl(0);
|
||||||
}
|
}
|
||||||
$linkback = '<a href="' . dol_buildpath('/ticketsup/list.php', 1) . '"><strong>' . $langs->trans("BackToList") . '</strong></a> ';
|
$linkback = '<a href="' . dol_buildpath('/ticketsup/list.php', 1) . '"><strong>' . $langs->trans("BackToList") . '</strong></a> ';
|
||||||
$object->ticketsup_banner_tab('ref', '', ($user->societe_id ? 0 : 1), 'ref', 'subject', '', '', '', $morehtmlleft, $linkback);
|
$object->ticketsupBannerTab('ref', '', ($user->societe_id ? 0 : 1), 'ref', 'subject', '', '', '', $morehtmlleft, $linkback);
|
||||||
|
|
||||||
dol_fiche_end();
|
dol_fiche_end();
|
||||||
|
|
||||||
|
|||||||
@ -113,7 +113,7 @@ if ($action == 'view') {
|
|||||||
$object->dao->label .= $fuser->getNomUrl(0);
|
$object->dao->label .= $fuser->getNomUrl(0);
|
||||||
}
|
}
|
||||||
$linkback = '<a href="' . dol_buildpath('/ticketsup/list.php', 1) . '"><strong>' . $langs->trans("BackToList") . '</strong></a> ';
|
$linkback = '<a href="' . dol_buildpath('/ticketsup/list.php', 1) . '"><strong>' . $langs->trans("BackToList") . '</strong></a> ';
|
||||||
$object->dao->ticketsup_banner_tab('ref', '', ($user->societe_id ? 0 : 1), 'ref', 'subject', '', '', '', $morehtmlleft, $linkback);
|
$object->dao->ticketsupBannerTab('ref', '', ($user->societe_id ? 0 : 1), 'ref', 'subject', '', '', '', $morehtmlleft, $linkback);
|
||||||
|
|
||||||
dol_fiche_end();
|
dol_fiche_end();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user