Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
b7f4452a
Commit
b7f4452a
authored
9 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
dept: Rename 'dept and group' to 'dept and extended members'
parent
bc638b17
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/ajax.admin.php
+1
-1
1 addition, 1 deletion
include/ajax.admin.php
include/class.dept.php
+8
-3
8 additions, 3 deletions
include/class.dept.php
include/staff/department.inc.php
+1
-1
1 addition, 1 deletion
include/staff/department.inc.php
with
10 additions
and
5 deletions
include/ajax.admin.php
+
1
−
1
View file @
b7f4452a
...
...
@@ -34,7 +34,7 @@ class AdminAjaxAPI extends AjaxController {
$errors
=
array
();
$vars
=
$form
->
getClean
();
$vars
+=
array
(
'group_membership'
=>
Dept
::
ALERTS_DEPT_AND_
GROUPS
,
'group_membership'
=>
Dept
::
ALERTS_DEPT_AND_
EXTENDED
,
);
if
(
$dept
->
update
(
$vars
,
$errors
))
{
Http
::
response
(
201
,
$this
->
encode
(
array
(
...
...
This diff is collapsed.
Click to expand it.
include/class.dept.php
+
8
−
3
View file @
b7f4452a
...
...
@@ -58,7 +58,7 @@ implements TemplateVariable {
var
$autorespEmail
;
const
ALERTS_DISABLED
=
2
;
const
ALERTS_DEPT_AND_
GROUPS
=
1
;
const
ALERTS_DEPT_AND_
EXTENDED
=
1
;
const
ALERTS_DEPT_ONLY
=
0
;
const
FLAG_ASSIGN_MEMBERS_ONLY
=
0x0001
;
...
...
@@ -210,9 +210,14 @@ implements TemplateVariable {
$rv
=
clone
$this
->
getAvailableMembers
();
$rv
->
filter
(
Q
::
any
(
array
(
// Ensure "Alerts" is enabled — must be a primary member or
// have alerts enabled on your membership.
// have alerts enabled on your membership and have alerts
// configured to extended to extended access members
'dept_id'
=>
$this
->
getId
(),
'dept_access__flags__hasbit'
=>
StaffDeptAccess
::
FLAG_ALERTS
,
// NOTE: Manager is excluded here if not a member
Q
::
all
(
array
(
'group_membership'
=>
self
::
ALERTS_DEPT_AND_EXTENDED
,
'dept_access__flags__hasbit'
=>
StaffDeptAccess
::
FLAG_ALERTS
,
)),
)));
}
return
$rv
;
...
...
This diff is collapsed.
Click to expand it.
include/staff/department.inc.php
+
1
−
1
View file @
b7f4452a
...
...
@@ -268,7 +268,7 @@ $info = Format::htmlchars(($errors && $_POST) ? $_POST : $info);
<?php
foreach
(
array
(
Dept
::
ALERTS_DISABLED
=>
__
(
"No one (disable Alerts and Notices)"
),
Dept
::
ALERTS_DEPT_ONLY
=>
__
(
"Department members only"
),
Dept
::
ALERTS_DEPT_AND_
GROUPS
=>
__
(
"Department and
Group
members"
),
Dept
::
ALERTS_DEPT_AND_
EXTENDED
=>
__
(
"Department and
extended access
members"
),
)
as
$mode
=>
$desc
)
{
?>
<option
value=
"
<?php
echo
$mode
;
?>
"
<?php
if
(
$info
[
'group_membership'
]
==
$mode
)
echo
'selected="selected"'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment