Author: nathangray
New Revision: 55906
URL: http://svn.stylite.de/viewvc/egroupware?rev=55906&view=rev
Log:
- Use datasource to default, fixes addressbook entries not ignored
- Do not set element start date if not supported, fixes addressbook entries got a start date
- Update element totals in header for refresh
- Fix Times / Planned / Replanned totals were not updated
Modified:
trunk/projectmanager/inc/class.datasource.inc.php
trunk/projectmanager/inc/class.projectmanager_elements_bo.inc.php
trunk/projectmanager/inc/class.projectmanager_elements_ui.inc.php
trunk/projectmanager/templates/default/elements.list.xet
— trunk/projectmanager/inc/class.datasource.inc.php (original)
+++ trunk/projectmanager/inc/class.datasource.inc.php Wed Apr 27 23:09:18 2016
@@ -188,7 +188,8 @@
if ($ds)
{
// setting a not set planned start from a contrains
-
if ((!$ds['pe_planned_start'] && isset($ds['pe_planned_start']) || $ds['ignore_planned_start']) &&
-
!is_null($pe_data) && $pe_data['pe_constraints']['start'])
{
//echo "start-constr."; _debug_array($pe_data['pe_constraints']['start']);
$start = 0;
@@ -213,12 +214,12 @@
}
}
// setting the planned start from the real-start
@@ -255,11 +256,11 @@
}
}
// setting real or planned start-date, from each other if not set
— trunk/projectmanager/inc/class.projectmanager_elements_bo.inc.php (original)
+++ trunk/projectmanager/inc/class.projectmanager_elements_bo.inc.php Wed Apr 27 23:09:18 2016
@@ -232,9 +232,12 @@
}
$this->init();
$need_save_anyway = false;
-
$datasource =& $this->datasource($app);
-
// check if entry already exists and set basic values if not
if (!$pe_id || ($need_save_anyway = !$this->read(array('pm_id'=>$pm_id,'pe_id'=>$pe_id))))
{
-
$this->data = $datasource->read($id);
$this->data['pm_id'] = $pm_id;
$this->data['pe_id'] = $pe_id;
$this->data['pe_overwrite'] = 0; // none set so far
@@ -256,7 +259,6 @@
{
$this->data_merge($extra_keys);
}
— trunk/projectmanager/inc/class.projectmanager_elements_ui.inc.php (original)
+++ trunk/projectmanager/inc/class.projectmanager_elements_ui.inc.php Wed Apr 27 23:09:18 2016
@@ -465,7 +465,7 @@
// Check for filter change, need to get totals
$session = egw_cache::getSession('projectmanager', 'projectelements_list');
-
$get_totals = $query_in['start'] === 0 || ($session && $session['filter'] != $query_in['filter']) || !$session && $query_in['filter'];
$query=$query_in;
unset($query_in['col_filter']['parent_id']);
$GLOBALS['egw']->session->appsession('projectelements_list','projectmanager',$query_in);
@@ -688,6 +688,11 @@
if ($budget_rights || !in_array($field, array(‘pe_planned_budget’, ‘pe_used_budget’)))
{
$rows[‘total_’ . $field] = $value;
-
}
-
// etemplate requires unique IDs, these ones are in the second times column
-
if(in_array($field, array('pe_planned_time', 'pe_used_time')))
-
{
-
$rows['total_' . $field . '_2'] = $value;
}
}
}
— trunk/projectmanager/templates/default/elements.list.xet (original)
+++ trunk/projectmanager/templates/default/elements.list.xet Wed Apr 27 23:09:18 2016
@@ -87,9 +87,9 @@
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs