Commit 7162812c authored by Gerald Salin's avatar Gerald Salin
Browse files

#98 : update user not working

parent 5c5397f6
...@@ -639,7 +639,7 @@ class tx_nG6_eid { ...@@ -639,7 +639,7 @@ class tx_nG6_eid {
$group_name = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('title')); $group_name = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('title'));
$location = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('location')); $location = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('location'));
$organism = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('organism')); $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')); $password = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('password'));
$cruser_id = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('creator')); $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); $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 { ...@@ -681,7 +681,7 @@ class tx_nG6_eid {
print $nb_updated; print $nb_updated;
} }
else if ($type == 'get_user_group'){ 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))); print json_encode(tx_nG6_db::get_group_informations(tx_nG6_db::get_user_usergroup($id)));
} }
elseif($type == 'runs_table') { elseif($type == 'runs_table') {
......
...@@ -394,7 +394,7 @@ $(function () { ...@@ -394,7 +394,7 @@ $(function () {
console.log("update_pwd " + update_pwd); console.log("update_pwd " + update_pwd);
// get title laboratory and organism from ajax query // get title laboratory and organism from ajax query
$.ajax({ $.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', dataType: 'json',
success: function (data) { success: function (data) {
update_user_call_back(data, first_name); update_user_call_back(data, first_name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment