Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
4fef53c3
Commit
4fef53c3
authored
9 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
staff: Allow profile update of vacation mode
Also fixup some layout issues in filter management
parent
317da2f2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/class.staff.php
+1
-0
1 addition, 0 deletions
include/class.staff.php
include/staff/filter.inc.php
+14
-7
14 additions, 7 deletions
include/staff/filter.inc.php
with
15 additions
and
7 deletions
include/class.staff.php
+
1
−
0
View file @
4fef53c3
...
@@ -631,6 +631,7 @@ implements AuthenticatedUser, EmailContact, TemplateVariable {
...
@@ -631,6 +631,7 @@ implements AuthenticatedUser, EmailContact, TemplateVariable {
$this
->
default_signature_type
=
$vars
[
'default_signature_type'
];
$this
->
default_signature_type
=
$vars
[
'default_signature_type'
];
$this
->
default_paper_size
=
$vars
[
'default_paper_size'
];
$this
->
default_paper_size
=
$vars
[
'default_paper_size'
];
$this
->
lang
=
$vars
[
'lang'
];
$this
->
lang
=
$vars
[
'lang'
];
$this
->
onvacation
=
isset
(
$vars
[
'onvacation'
])
?
1
:
0
;
if
(
$errors
)
if
(
$errors
)
return
false
;
return
false
;
...
...
This diff is collapsed.
Click to expand it.
include/staff/filter.inc.php
+
14
−
7
View file @
4fef53c3
...
@@ -56,8 +56,10 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
...
@@ -56,8 +56,10 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<em>
(1...99)
</em>
<em>
(1...99)
</em>
<span
class=
"error"
>
*
<?php
echo
$errors
[
'execorder'
];
?>
</span>
<span
class=
"error"
>
*
<?php
echo
$errors
[
'execorder'
];
?>
</span>
<label
class=
"inline checkbox"
>
<input
type=
"checkbox"
name=
"stop_onmatch"
value=
"1"
<?php
echo
$info
[
'stop_onmatch'
]
?
'checked="checked"'
:
''
;
?>
>
<input
type=
"checkbox"
name=
"stop_onmatch"
value=
"1"
<?php
echo
$info
[
'stop_onmatch'
]
?
'checked="checked"'
:
''
;
?>
>
<?php
echo
__
(
'<strong>Stop</strong> processing further on match!'
);
?>
<?php
echo
__
(
'<strong>Stop</strong> processing further on match!'
);
?>
</label>
<i
class=
"help-tip icon-question-sign"
href=
"#execution_order"
></i>
<i
class=
"help-tip icon-question-sign"
href=
"#execution_order"
></i>
</td>
</td>
</tr>
</tr>
...
@@ -114,10 +116,16 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
...
@@ -114,10 +116,16 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<td
colspan=
2
>
<td
colspan=
2
>
<em>
<?php
echo
__
(
'Rules Matching Criteria'
);
?>
:
</em>
<em>
<?php
echo
__
(
'Rules Matching Criteria'
);
?>
:
</em>
<input
type=
"radio"
name=
"match_all_rules"
value=
"1"
<?php
echo
$info
[
'match_all_rules'
]
?
'checked="checked"'
:
''
;
?>
>
<?php
echo
__
(
'Match All'
);
?>
<label>
<input
type=
"radio"
name=
"match_all_rules"
value=
"1"
<?php
echo
$info
[
'match_all_rules'
]
?
'checked="checked"'
:
''
;
?>
>
<input
type=
"radio"
name=
"match_all_rules"
value=
"0"
<?php
echo
!
$info
[
'match_all_rules'
]
?
'checked="checked"'
:
''
;
?>
>
<?php
echo
__
(
'Match Any'
);
?>
<?php
echo
__
(
'Match All'
);
?>
<span
class=
"error"
>
*
</span>
</label>
<span
style=
"display:inline-block;width:10px"
>
</span>
<label>
<input
type=
"radio"
name=
"match_all_rules"
value=
"0"
<?php
echo
!
$info
[
'match_all_rules'
]
?
'checked="checked"'
:
''
;
?>
>
<?php
echo
__
(
'Match Any'
);
?>
</label>
<span
class=
"error"
>
*
</span>
<em>
(
<?php
echo
__
(
'case-insensitive comparison'
);
?>
)
</em>
<em>
(
<?php
echo
__
(
'case-insensitive comparison'
);
?>
)
</em>
<i
class=
"help-tip icon-question-sign"
href=
"#rules_matching_criteria"
></i>
<i
class=
"help-tip icon-question-sign"
href=
"#rules_matching_criteria"
></i>
...
@@ -232,8 +240,7 @@ foreach (FilterAction::allRegistered() as $group=>$actions) {
...
@@ -232,8 +240,7 @@ foreach (FilterAction::allRegistered() as $group=>$actions) {
<?php
}
<?php
}
}
?>
}
?>
</select>
</select>
<input
id=
"new-action-btn"
type=
"button"
value=
"
<?php
echo
__
(
'Add'
);
?>
"
<button
id=
"new-action-btn"
type=
"button"
class=
"inline green button"
onclick=
"javascript:
onclick=
"javascript:
var dropdown = $('#new-action-select'), selected = dropdown.find(':selected');
var dropdown = $('#new-action-select'), selected = dropdown.find(':selected');
dropdown.val('');
dropdown.val('');
$('#dynamic-actions')
$('#dynamic-actions')
...
@@ -248,7 +255,7 @@ foreach (FilterAction::allRegistered() as $group=>$actions) {
...
@@ -248,7 +255,7 @@ foreach (FilterAction::allRegistered() as $group=>$actions) {
)
)
).append(
).append(
$('<input>').attr({type:'hidden',name:'actions[]',value:'N'+selected.val()})
$('<input>').attr({type:'hidden',name:'actions[]',value:'N'+selected.val()})
);"
/
>
);"
>
<?php
echo
__
(
'Add'
);
?>
</button
>
</td>
</td>
</tr>
</tr>
<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