From 80d81bfb44eaa3395043a9f2ac55a02d7282f595 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 1 Oct 2014 19:59:50 +0000 Subject: [PATCH] If link changes, update client side with new title when possible. --- phpgwapi/inc/class.egw_link.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpgwapi/inc/class.egw_link.inc.php b/phpgwapi/inc/class.egw_link.inc.php index b302920810..e6c6db0862 100644 --- a/phpgwapi/inc/class.egw_link.inc.php +++ b/phpgwapi/inc/class.egw_link.inc.php @@ -1366,6 +1366,11 @@ class egw_link extends solink { self::notify('update',$link['app'],$link['id'],$app,$id,$link_id,$data); } + if($data[egw_link::OLD_LINK_TITLE] && egw_json_response::isJSONResponse()) + { + // Update client side with new title + egw_json_response::get()->apply('egw.link_title_callback',array(array($app => array($id => self::title($app, $id))))); + } } /**