Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
ng6
Commits
7162812c
Commit
7162812c
authored
Dec 20, 2018
by
Gerald Salin
Browse files
#98
: update user not working
parent
5c5397f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/nG6/class.tx_nG6_eid.php
View file @
7162812c
...
...
@@ -639,7 +639,7 @@ class tx_nG6_eid {
$group_name
=
trim
(
\
TYPO3\CMS\Core\Utility\GeneralUtility
::
_GP
(
'title'
));
$location
=
trim
(
\
TYPO3\CMS\Core\Utility\GeneralUtility
::
_GP
(
'location'
));
$organism
=
trim
(
\
TYPO3\CMS\Core\Utility\GeneralUtility
::
_GP
(
'organism'
));
$user_id
=
trim
(
\
TYPO3\CMS\Core\Utility\GeneralUtility
::
_GP
(
'id'
));
$user_id
=
trim
(
\
TYPO3\CMS\Core\Utility\GeneralUtility
::
_GP
(
'
user_
id'
));
$password
=
trim
(
\
TYPO3\CMS\Core\Utility\GeneralUtility
::
_GP
(
'password'
));
$cruser_id
=
trim
(
\
TYPO3\CMS\Core\Utility\GeneralUtility
::
_GP
(
'creator'
));
$send_an_email
=
filter_var
(
trim
(
\
TYPO3\CMS\Core\Utility\GeneralUtility
::
_GP
(
'send_an_email'
)),
FILTER_VALIDATE_BOOLEAN
);
...
...
@@ -681,7 +681,7 @@ class tx_nG6_eid {
print
$nb_updated
;
}
else
if
(
$type
==
'get_user_group'
){
$id
=
trim
(
\
TYPO3\CMS\Core\Utility\GeneralUtility
::
_GP
(
'id'
));
$id
=
trim
(
\
TYPO3\CMS\Core\Utility\GeneralUtility
::
_GP
(
'
user_
id'
));
print
json_encode
(
tx_nG6_db
::
get_group_informations
(
tx_nG6_db
::
get_user_usergroup
(
$id
)));
}
elseif
(
$type
==
'runs_table'
)
{
...
...
ui/nG6/res/js/tx_nG6_pi1.js
View file @
7162812c
...
...
@@ -394,7 +394,7 @@ $(function () {
console
.
log
(
"
update_pwd
"
+
update_pwd
);
// get title laboratory and organism from ajax query
$
.
ajax
({
url
:
"
index.php?eID=tx_nG6&type=get_user_group&id=
"
+
user_id
,
url
:
"
index.php?eID=tx_nG6&type=get_user_group&
user_
id=
"
+
user_id
,
dataType
:
'
json
'
,
success
:
function
(
data
)
{
update_user_call_back
(
data
,
first_name
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment