projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactored ttReportHelper::getItems for multiple group by condition.
[timetracker.git]
/
client_add.php
diff --git
a/client_add.php
b/client_add.php
index
5ae5997
..
3afcbc0
100644
(file)
--- a/
client_add.php
+++ b/
client_add.php
@@
-41,7
+41,7
@@
if (!$user->isPluginEnabled('cl')) {
exit();
}
exit();
}
-$projects = ttTeamHelper::getActiveProjects($user->
team
_id);
+$projects = ttTeamHelper::getActiveProjects($user->
group
_id);
if ($request->isPost()) {
$cl_name = trim($request->getParameter('name'));
if ($request->isPost()) {
$cl_name = trim($request->getParameter('name'));
@@
-71,7
+71,7
@@
if ($request->isPost()) {
if ($err->no()) {
if (!ttClientHelper::getClientByName($cl_name)) {
if (ttClientHelper::insert(array(
if ($err->no()) {
if (!ttClientHelper::getClientByName($cl_name)) {
if (ttClientHelper::insert(array(
- '
team_id' => $user->team
_id,
+ '
group_id' => $user->group
_id,
'name' => $cl_name,
'address' => $cl_address,
'tax' => $cl_tax,
'name' => $cl_name,
'address' => $cl_address,
'tax' => $cl_tax,