silence debug messages

This commit is contained in:
Klaus Leithoff 2014-05-20 11:47:18 +00:00
parent d322ee7ec4
commit 30d2445714
2 changed files with 11 additions and 4 deletions

View File

@ -165,7 +165,7 @@ class mail_ui
*/ */
static function callWizard($message, $exit=true) static function callWizard($message, $exit=true)
{ {
error_log(__METHOD__."('$message', $exit) ".function_backtrace()); //error_log(__METHOD__."('$message', $exit) ".function_backtrace());
$linkData=(self::$icServerID ? array( $linkData=(self::$icServerID ? array(
'menuaction' => 'mail.mail_wizard.edit', 'menuaction' => 'mail.mail_wizard.edit',
'acc_id' => self::$icServerID, 'acc_id' => self::$icServerID,
@ -1115,7 +1115,7 @@ class mail_ui
$moveactions = array(); $moveactions = array();
$lastFoldersUsedForMoveCont = egw_cache::getCache(egw_cache::INSTANCE,'email','lastFolderUsedForMove'.trim($GLOBALS['egw_info']['user']['account_id']),null,array(),$expiration=60*60*1); $lastFoldersUsedForMoveCont = egw_cache::getCache(egw_cache::INSTANCE,'email','lastFolderUsedForMove'.trim($GLOBALS['egw_info']['user']['account_id']),null,array(),$expiration=60*60*1);
//error_log(__METHOD__.__LINE__." StoredFolders->".array2string($lastFoldersUsedForMoveCont)); //error_log(__METHOD__.__LINE__." StoredFolders->".array2string($lastFoldersUsedForMoveCont));
error_log(__METHOD__.__LINE__.' ProfileId:'.$this->mail_bo->profileID." StoredFolders->(".count($lastFoldersUsedForMoveCont[$this->mail_bo->profileID]).") ".array2string($lastFoldersUsedForMoveCont[$this->mail_bo->profileID])); //error_log(__METHOD__.__LINE__.' ProfileId:'.$this->mail_bo->profileID." StoredFolders->(".count($lastFoldersUsedForMoveCont[$this->mail_bo->profileID]).") ".array2string($lastFoldersUsedForMoveCont[$this->mail_bo->profileID]));
if (is_null($accArray)) if (is_null($accArray))
{ {
foreach(emailadmin_account::search($only_current_user=true, $just_name=false) as $acc_id => $accountObj) foreach(emailadmin_account::search($only_current_user=true, $just_name=false) as $acc_id => $accountObj)
@ -4456,7 +4456,14 @@ $this->partID = $partID;
if ($changeFolderActions == true) if ($changeFolderActions == true)
{ {
egw_cache::setCache(egw_cache::INSTANCE,'email','lastFolderUsedForMove'.trim($GLOBALS['egw_info']['user']['account_id']),$lastFoldersUsedForMoveCont, $expiration=60*60*1); egw_cache::setCache(egw_cache::INSTANCE,'email','lastFolderUsedForMove'.trim($GLOBALS['egw_info']['user']['account_id']),$lastFoldersUsedForMoveCont, $expiration=60*60*1);
$actionsnew = etemplate_widget_nextmatch::egw_actions(self::get_actions()); $actionsnew = self::get_actions();
/*
$actionsWithoutMoveTo = $actionsnew;
unset($actionsWithoutMoveTo['moveto']);
$actionsWithoutMoveTo = etemplate_widget_nextmatch::egw_actions($actionsWithoutMoveTo);
$response->call('app.mail.mail_rebuildActionsOnList',$actionsWithoutMoveTo);
*/
$actionsnew = etemplate_widget_nextmatch::egw_actions($actionsnew);
$response->call('app.mail.mail_rebuildActionsOnList',$actionsnew); $response->call('app.mail.mail_rebuildActionsOnList',$actionsnew);
} }
} }

View File

@ -182,7 +182,7 @@ app.classes.mail = AppJS.extend(
*/ */
mail_rebuildActionsOnList: function(_actions) mail_rebuildActionsOnList: function(_actions)
{ {
console.log("mail_rebuildActionsOnList",_actions); //console.log("mail_rebuildActionsOnList",_actions);
this.et2.getWidgetById(this.nm_index).set_actions(_actions); this.et2.getWidgetById(this.nm_index).set_actions(_actions);
}, },