[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [8996] catch: old values in history table
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [8996] catch: old values in history table |
Date: |
Tue, 20 Mar 2012 14:44:18 +0000 |
Revision: 8996
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8996
Author: sigurdne
Date: 2012-03-20 14:44:18 +0000 (Tue, 20 Mar 2012)
Log Message:
-----------
catch: old values in history table
Modified Paths:
--------------
trunk/property/inc/class.historylog.inc.php
Modified: trunk/property/inc/class.historylog.inc.php
===================================================================
--- trunk/property/inc/class.historylog.inc.php 2012-03-20 14:38:18 UTC (rev
8995)
+++ trunk/property/inc/class.historylog.inc.php 2012-03-20 14:44:18 UTC (rev
8996)
@@ -63,6 +63,10 @@
{
$selector = 'entity';
}
+ else if(substr($appname,0,5)=='catch')
+ {
+ $selector = 'catch';
+ }
else
{
$selector = $appname;
@@ -70,30 +74,31 @@
switch($selector)
{
- case 'request':
- $this->table='fm_request_history';
+ case 'request':
+ $this->table='fm_request_history';
+ break;
+ case 'workorder':
+ $this->table='fm_workorder_history';
+ break;
+ case 'project':
+ $this->table='fm_project_history';
+ break;
+ case 'tts':
+ $this->table='fm_tts_history';
+ break;
+ case 'document':
+ $this->table='fm_document_history';
+ break;
+ case 'entity':
+ case 'catch':
+ $this->table ="fm_{$selector}_history";
+ $this->attrib_id_field =
',history_attrib_id';
+ break;
+ case 's_agreement':
+ $this->table='fm_s_agreement_history';
+ $this->attrib_id_field =
',history_attrib_id';
+ $this->detail_id_field =
',history_detail_id';
break;
- case 'workorder':
- $this->table='fm_workorder_history';
- break;
- case 'project':
- $this->table='fm_project_history';
- break;
- case 'tts':
- $this->table='fm_tts_history';
- break;
- case 'document':
- $this->table='fm_document_history';
- break;
- case 'entity':
- $this->table='fm_entity_history';
- $this->attrib_id_field = ',history_attrib_id';
- break;
- case 's_agreement':
- $this->table='fm_s_agreement_history';
- $this->attrib_id_field = ',history_attrib_id';
- $this->detail_id_field = ',history_detail_id';
- break;
}
$this->appname = $appname;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [8996] catch: old values in history table,
Sigurd Nes <=