Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
714984eb
Commit
714984eb
authored
Jan 04, 2008
by
Richard Mansfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing institution staff checkbox on edit user page
parent
baf4a76e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
htdocs/admin/users/edit.php
htdocs/admin/users/edit.php
+3
-3
No files found.
htdocs/admin/users/edit.php
View file @
714984eb
...
...
@@ -277,11 +277,11 @@ foreach ($user->get('institutions') as $i) {
'description'
=>
get_string
(
'institutionstudentiddescription'
,
'admin'
),
'defaultvalue'
=>
$i
->
studentid
,
),
/*
$i->institution.'_staff' => array(
$i
->
institution
.
'_staff'
=>
array
(
'type'
=>
'checkbox'
,
'title'
=>
get_string
(
'institutionstaff'
,
'admin'
),
'defaultvalue'
=>
$i
->
staff
,
),
*/
),
$i
->
institution
.
'_admin'
=>
array
(
'type'
=>
'checkbox'
,
'title'
=>
get_string
(
'institutionadmin'
,
'admin'
),
...
...
@@ -347,7 +347,7 @@ function edituser_institution_submit(Pieform $form, $values) {
'institution'
=>
$i
->
institution
,
'ctime'
=>
db_format_timestamp
(
$i
->
ctime
),
'studentid'
=>
$values
[
$i
->
institution
.
'_studentid'
],
//
'staff' => (int) ($values[$i->institution . '_staff'] == 'on'),
'staff'
=>
(
int
)
(
$values
[
$i
->
institution
.
'_staff'
]
==
'on'
),
'admin'
=>
(
int
)
(
$values
[
$i
->
institution
.
'_admin'
]
==
'on'
),
);
if
(
$values
[
$i
->
institution
.
'_expiry'
])
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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