projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adjusted task_add.php and task_edit.php to operate with subgroups.
[timetracker.git]
/
mobile
/
client_add.php
diff --git
a/mobile/client_add.php
b/mobile/client_add.php
index
7a097b5
..
222012d
100644
(file)
--- a/
mobile/client_add.php
+++ b/
mobile/client_add.php
@@
-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(
- 'group_id' => $user->get
Active
Group(),
+ 'group_id' => $user->getGroup(),
'org_id' => $user->org_id,
'name' => $cl_name,
'address' => $cl_address,
'org_id' => $user->org_id,
'name' => $cl_name,
'address' => $cl_address,
@@
-83,7
+83,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->get('error.db'));
} else
} else
$err->add($i18n->get('error.db'));
} else
- $err->add($i18n->get('error.
clien
t_exists'));
+ $err->add($i18n->get('error.
objec
t_exists'));
}
} // isPost
}
} // isPost