From c17d7246ad63867bbe17ab4c80bf752164b91fc5 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 29 Sep 2015 12:12:01 +0200 Subject: [PATCH] call hook for setting msg of timeline item --- views/bootstrap/class.ViewDocument.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index e9fbf0837..699c61c25 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -1196,7 +1196,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { $msg = getMLText('timeline_'.$item['type'], array('document'=>$item['document']->getName(), 'version'=> $item['version'], 'status'=> getOverallStatusText($item['status']))); break; default: - $msg = '???'; + $msg = $this->callHook('getTimelineMsg', $document, $item); + if(!is_string($msg)) + $msg = '???'; } $item['msg'] = $msg; }