mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
new InfoLog status filter "Archived too"
This commit is contained in:
parent
9fd3443c60
commit
4ec14508ad
@ -298,6 +298,7 @@ class infolog_bo
|
||||
if ($type !== 'defaults' && !isset($statis['archive']))
|
||||
{
|
||||
$statis['archive'] = 'archive';
|
||||
$statis['archive_too'] = lang('Archived too');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -299,8 +299,8 @@ class infolog_so
|
||||
* generate sql to filter based on the status of the log-entry
|
||||
*
|
||||
* @param string $_filter done = done or billed, open = not (done, billed, cancelled or deleted), offer = offer
|
||||
* @param boolean $prefix_and =true if true prefix the fileter with ' AND '
|
||||
* @return string the necesary sql
|
||||
* @param boolean $prefix_and =true if true prefix the filter with ' AND '
|
||||
* @return string the necessary sql
|
||||
*/
|
||||
function statusFilter($_filter = '',$prefix_and=true)
|
||||
{
|
||||
@ -883,6 +883,13 @@ class infolog_so
|
||||
$filtermethod .= ' AND '.$this->db->expression($this->info_table,'main.',array('info_id' => $data));
|
||||
break;
|
||||
|
||||
case 'info_status':
|
||||
if ($data === 'archive_too')
|
||||
{
|
||||
$filtermethod .= "AND info_status NOT IN ('deleted','template','nonactive')";
|
||||
break;
|
||||
}
|
||||
// fall through
|
||||
default:
|
||||
$filtermethod .= ' AND '.$this->db->expression($this->info_table,array($col => $data));
|
||||
break;
|
||||
|
@ -821,11 +821,11 @@ class infolog_ui
|
||||
/**
|
||||
* Shows the infolog list
|
||||
*
|
||||
* @param array/string $values etemplate content or 'reset_action_view' if called by index.php to reset an action-view
|
||||
* @param array|string $values etemplate content or 'reset_action_view' if called by index.php to reset an action-view
|
||||
* @param string $action if set only entries liked to that $action:$action_id are shown
|
||||
* @param string $action_id if set only entries liked to that $action:$action_id are shown
|
||||
* @param mixed $called_as is how we got called, for a hook eg. the call-params of that page containing the hook
|
||||
* @param boolean $e$extra_app_header * @param boolean $return_html=false
|
||||
* @param boolean $extra_app_header * @param boolean $return_html=false
|
||||
* @param string $own_referer='' this is our own referer
|
||||
* @param string $action_title='' app_header for the action, if '' we try the link-title
|
||||
*/
|
||||
|
@ -60,6 +60,7 @@ application mail expected but got: %1 infolog de Mail-Applikation erwartet aber
|
||||
apply the action on the whole query, not only the shown entries!!! infolog de Wendet den Befehl auf die gesamte Abfrage an, NICHT nur auf die angezeigten Datensätze!
|
||||
apply the changes infolog de Übernimmt die Änderungen
|
||||
archive infolog de Archiviert
|
||||
archived too infolog de Auch archiviert
|
||||
are you shure you want to close this entry ? infolog de Wollen Sie wirklich den InfoLog schliessen?
|
||||
are you shure you want to delete this entry ? infolog de Wollen Sie diesen InfoLog wirklich löschen?
|
||||
attach a file infolog de Datei anhängen
|
||||
|
@ -60,6 +60,7 @@ application mail expected but got: %1 infolog en Application email expected but
|
||||
apply the action on the whole query, not only the shown entries!!! infolog en Apply the action on the whole query, NOT only the shown entries!
|
||||
apply the changes infolog en Apply the changes
|
||||
archive infolog en Archive
|
||||
archived too infolog en Archived too
|
||||
are you shure you want to close this entry ? infolog en Are you sure you want to close this entry?
|
||||
are you shure you want to delete this entry ? infolog en Are you sure you want to delete this entry?
|
||||
attach a file infolog en Attach a file
|
||||
|
Loading…
Reference in New Issue
Block a user