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
c75ee860
Commit
c75ee860
authored
9 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
oops: Fix crash disabling sla, update staff profile
parent
d3fa2181
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/staff/profile.inc.php
+8
-8
8 additions, 8 deletions
include/staff/profile.inc.php
scp/slas.php
+4
-2
4 additions, 2 deletions
scp/slas.php
with
12 additions
and
10 deletions
include/staff/profile.inc.php
+
8
−
8
View file @
c75ee860
...
...
@@ -138,7 +138,7 @@ if(!defined('OSTSTAFFINC') || !$staff || !$thisstaff) die('Access Denied');
<select
name=
"max_page_size"
>
<option
value=
"0"
>
—
<?php
echo
__
(
'system default'
);
?>
—
</option>
<?php
$pagelimit
=
$info
[
'
max_page_size
'
]
?
$info
[
'max_page_size'
]
:
$cfg
->
getPageSize
();
$pagelimit
=
$staff
->
max_page_size
?:
$cfg
->
getPageSize
();
for
(
$i
=
5
;
$i
<=
50
;
$i
+=
5
)
{
$sel
=
(
$pagelimit
==
$i
)
?
'selected="selected"'
:
''
;
echo
sprintf
(
'<option value="%d" %s>'
.
__
(
'show %s records'
)
.
'</option>'
,
$i
,
$sel
,
$i
);
...
...
@@ -156,7 +156,7 @@ if(!defined('OSTSTAFFINC') || !$staff || !$thisstaff) die('Access Denied');
<?php
$y
=
1
;
for
(
$i
=
1
;
$i
<=
30
;
$i
+=
$y
)
{
$sel
=
(
$
info
[
'
auto_refresh_rate
'
]
==
$i
)
?
'selected="selected"'
:
''
;
$sel
=
(
$
staff
->
auto_refresh_rate
==
$i
)
?
'selected="selected"'
:
''
;
echo
sprintf
(
'<option value="%1$d" %2$s>'
.
sprintf
(
_N
(
'Every minute'
,
'Every %d minutes'
,
$i
),
$i
)
...
...
@@ -179,7 +179,7 @@ if(!defined('OSTSTAFFINC') || !$staff || !$thisstaff) die('Access Denied');
__
(
'if set'
/* This is used in 'Department Signature (>if set<)' */
)));
foreach
(
$options
as
$k
=>
$v
)
{
echo
sprintf
(
'<option value="%s" %s>%s</option>'
,
$k
,(
$
info
[
'
default_signature_type
'
]
==
$k
)
?
'selected="selected"'
:
''
,
$v
);
$k
,(
$
staff
->
default_signature_type
==
$k
)
?
'selected="selected"'
:
''
,
$v
);
}
?>
</select>
...
...
@@ -197,7 +197,7 @@ if(!defined('OSTSTAFFINC') || !$staff || !$thisstaff) die('Access Denied');
foreach
(
Export
::
$paper_sizes
as
$v
)
{
echo
sprintf
(
'<option value="%s" %s>%s</option>'
,
$v
,(
$
info
[
'
default_paper_size
'
]
==
$v
)
?
'selected="selected"'
:
''
,
__
(
$v
));
$v
,(
$
staff
->
default_paper_size
==
$v
)
?
'selected="selected"'
:
''
,
__
(
$v
));
}
?>
</select>
...
...
@@ -216,7 +216,7 @@ if(!defined('OSTSTAFFINC') || !$staff || !$thisstaff) die('Access Denied');
<td>
<?php
$TZ_NAME
=
'timezone'
;
$TZ_TIMEZONE
=
$
info
[
'
timezone
'
]
;
$TZ_TIMEZONE
=
$
staff
->
timezone
;
include
STAFFINC_DIR
.
'templates/timezone.tmpl.php'
;
?>
<div
class=
"error"
>
<?php
echo
$errors
[
'timezone'
];
?>
</div>
</td>
...
...
@@ -230,7 +230,7 @@ if(!defined('OSTSTAFFINC') || !$staff || !$thisstaff) die('Access Denied');
<select
name=
"lang"
>
<option
value=
""
>
—
<?php
echo
__
(
'Use Browser Preference'
);
?>
—
</option>
<?php
foreach
(
$langs
as
$l
)
{
$selected
=
(
$
info
[
'
lang
'
]
==
$l
[
'code'
])
?
'selected="selected"'
:
''
;
?>
$selected
=
(
$
staff
->
lang
==
$l
[
'code'
])
?
'selected="selected"'
:
''
;
?>
<option
value=
"
<?php
echo
$l
[
'code'
];
?>
"
<?php
echo
$selected
;
?>
>
<?php
echo
Internationalization
::
getLanguageDescription
(
$l
[
'code'
]);
?>
</option>
<?php
}
?>
...
...
@@ -247,7 +247,7 @@ if(!defined('OSTSTAFFINC') || !$staff || !$thisstaff) die('Access Denied');
<option
value=
""
>
<?php
echo
__
(
'Use Language Preference'
);
?>
</option>
<?php
foreach
(
Internationalization
::
allLocales
()
as
$code
=>
$name
)
{
?>
<option
value=
"
<?php
echo
$code
;
?>
"
<?php
if
(
$code
==
$
info
[
'
locale
'
]
)
if
(
$code
==
$
staff
->
locale
)
echo
'selected="selected"'
;
?>
>
<?php
echo
$name
;
?>
</option>
<?php
}
?>
...
...
@@ -276,7 +276,7 @@ if(!defined('OSTSTAFFINC') || !$staff || !$thisstaff) die('Access Denied');
<tr>
<td
colspan=
"2"
>
<textarea
class=
"richtext no-bar"
name=
"signature"
cols=
"21"
rows=
"5"
style=
"width: 60%;"
>
<?php
echo
$
info
[
'
signature
'
]
;
?>
</textarea>
rows=
"5"
style=
"width: 60%;"
>
<?php
echo
$
staff
->
signature
;
?>
</textarea>
</td>
</tr>
</tbody>
...
...
This diff is collapsed.
Click to expand it.
scp/slas.php
+
4
−
2
View file @
c75ee860
...
...
@@ -57,7 +57,8 @@ if($_POST){
$num
=
SLA
::
objects
()
->
filter
(
array
(
'id__in'
=>
$_POST
[
'ids'
]
))
->
update
(
array
(
'isactive'
=>
1
'flags'
=>
SqlExpression
::
bitor
(
new
SqlField
(
'flags'
),
SLA
::
FLAG_ACTIVE
)
));
if
(
$num
)
{
if
(
$num
==
$count
)
...
...
@@ -75,7 +76,8 @@ if($_POST){
$num
=
SLA
::
objects
()
->
filter
(
array
(
'id__in'
=>
$_POST
[
'ids'
]
))
->
update
(
array
(
'isactive'
=>
0
'flags'
=>
SqlExpression
::
bitand
(
new
SqlField
(
'flags'
),
~
SLA
::
FLAG_ACTIVE
)
));
if
(
$num
)
{
...
...
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