diff --git a/htdocs/ticket/tpl/linkedobjectblock.tpl.php b/htdocs/ticket/tpl/linkedobjectblock.tpl.php
index 3391437dbb1..3a5cc46600a 100644
--- a/htdocs/ticket/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/ticket/tpl/linkedobjectblock.tpl.php
@@ -13,8 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * along with this program. If not, see
';
-print load_fiche_titre($langs->trans('RelatedTickets'));
+
+// Load translation files required by the page
+$langs->load('ticket');
+
+$linkedObjectBlock = dol_sort_array($linkedObjectBlock, 'date', 'desc');
+
+$total=0; $ilink=0;
+foreach($linkedObjectBlock as $key => $objectlink)
+{
+ $ilink++;
+
+ $trclass='oddeven';
+ if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) $trclass.=' liste_sub_total';
?>
-
| trans("Subject"); ?> | -trans("DateCreation"); ?> | -trans("Customer"); ?> | -trans("Status"); ?> | +|||
| trans("Ticket"); ?> + global->MAIN_ENABLE_IMPORT_LINKED_OBJECT_LINES) print ' + | +getNomUrl(1); ?> | +ref_client; ?> | +datec, 'day'); ?> | + socid = $objectlink->fk_soc; + //$objectlink->fetch_thirdparty(); + ?> +thirdparty->getNomUrl(1); ?> | +getLibStatut(3); ?> | ++ element != 'shipping') { + ?> + id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> + + |
| - track_id; ?>"> - trans("ShowTicket"), "ticket") . ' ' . (! empty($object->subject) ? ' '.$object->subject : ''); ?> - - | -datec, 'day'); ?> | +} +if (count($linkedObjectBlock) > 1) +{ + ?> +|||||
| trans("Total"); ?> | ++ | + | + | + | + | + | thirdparty->getNomUrl(1); ?> | -getLibstatut(2); ?> | - - -