From 2771600905472ca9f215a8f393aa5aadf34a0e72 Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Wed, 14 Nov 2018 15:20:26 +0800 Subject: [PATCH] * Finish task #5124. --- module/datatable/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/datatable/model.php b/module/datatable/model.php index 7bc9d4db7b..3eb81dcc56 100644 --- a/module/datatable/model.php +++ b/module/datatable/model.php @@ -129,6 +129,7 @@ class datatableModel extends model $fixed = $col->fixed == 'no' ? 'true': 'false'; $width = is_numeric($col->width) ? "{$col->width}px" : $col->width; $title = isset($col->title) ? "title='$col->title'" : ''; + $title = (isset($col->name) and $col->name) ? "title='$col->name'" : $title; if($id == 'id' and (int)$width < 90) $width = '90px'; $width = "data-width='$width' style='width:$width'"; $align = $id == 'actions' ? 'text-center' : '';