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
a15cb2d0
Commit
a15cb2d0
authored
11 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
No longer require a priority for help topics
parent
7bc88c39
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/class.topic.php
+3
-5
3 additions, 5 deletions
include/class.topic.php
include/staff/helptopic.inc.php
+3
-3
3 additions, 3 deletions
include/staff/helptopic.inc.php
with
6 additions
and
8 deletions
include/class.topic.php
+
3
−
5
View file @
a15cb2d0
...
...
@@ -224,11 +224,8 @@ class Topic {
if
(
!
$vars
[
'dept_id'
])
$errors
[
'dept_id'
]
=
'You must select a department'
;
if
(
!
$vars
[
'priority_id'
])
$errors
[
'priority_id'
]
=
'You must select a priority'
;
if
(
$errors
)
return
false
;
foreach
(
array
(
'sla_id'
,
'form_id'
,
'page_id'
,
'pid'
)
as
$f
)
if
(
!
isset
(
$vars
[
$f
]))
$vars
[
$f
]
=
0
;
...
...
@@ -237,7 +234,8 @@ class Topic {
.
',topic='
.
db_input
(
$vars
[
'topic'
])
.
',topic_pid='
.
db_input
(
$vars
[
'pid'
])
.
',dept_id='
.
db_input
(
$vars
[
'dept_id'
])
.
',priority_id='
.
db_input
(
$vars
[
'priority_id'
])
.
',priority_id='
.
db_input
(
isset
(
$vars
[
'priority_id'
])
?
$vars
[
'priority_id'
]
:
0
)
.
',sla_id='
.
db_input
(
$vars
[
'sla_id'
])
.
',form_id='
.
db_input
(
$vars
[
'form_id'
])
.
',page_id='
.
db_input
(
$vars
[
'page_id'
])
...
...
This diff is collapsed.
Click to expand it.
include/staff/helptopic.inc.php
+
3
−
3
View file @
a15cb2d0
...
...
@@ -106,12 +106,12 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</td>
</tr>
<tr>
<td
width=
"180"
class=
"required"
>
<td
width=
"180"
>
Priority:
</td>
<td>
<select
name=
"priority_id"
>
<option
value=
""
>
—
S
elect Priority
—
</option>
<option
value=
""
>
—
S
ystem Default
—
</option>
<?php
$sql
=
'SELECT priority_id,priority_desc FROM '
.
PRIORITY_TABLE
.
' pri ORDER by priority_urgency DESC'
;
if
((
$res
=
db_query
(
$sql
))
&&
db_num_rows
(
$res
)){
...
...
@@ -122,7 +122,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
}
?>
</select>
<span
class=
"error"
>
*
<?php
echo
$errors
[
'priority_id'
];
?>
</span>
<span
class=
"error"
>
<?php
echo
$errors
[
'priority_id'
];
?>
</span>
</td>
</tr>
<tr>
...
...
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