Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a1fdf9d8
authored
2011-01-29 20:35:37 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixing notifications bug
1 parent
553f2e5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
com/Notifications/views/form.php
com/Notifications/views/form.php
View file @
a1fdf9d
...
...
@@ -28,6 +28,12 @@ use Tz\WordPress\Tools;
</div>
<?php endif;?>
<?php
//print "
<
pre
>
";
//print_r(
$entry
);
//print "
</
pre
>
";
?>
<form enctype="
multipart
/
form
-
data
" method="
post
" action="
/
wp
-
admin
/
admin
.
php
?
page
=
notifications
&
action
=
edit
&
page_id
=<?
php
echo
$_GET
[
'page_id'
]
?>
">
<input
type=
"hidden"
name=
"_POSTED_"
value=
"yes"
/>
...
...
@@ -45,7 +51,7 @@ use Tz\WordPress\Tools;
<td>
<select
name=
"type"
id=
"notif_type"
class=
"wide-input-field"
onchange=
"updateNotificationType();"
>
<option
value=
"scheduled"
<?php
echo
(
$validation
->
set_value
(
'type'
,
$entry
->
details
[
'type'
])
==
"scheduled"
)
?
'selected="selected"'
:
""
;
?>
>
Scheduled Notification
</option>
<?php
if
(
current_user_can
(
Settings\MANAGE_SYSTEM_NOTIFICATIONS
))
:
?>
<?php
if
(
current_user_can
(
Settings\MANAGE_SYSTEM_NOTIFICATIONS
)
||
(
$_GET
[
'action'
]
==
"edit"
&&
$entry
->
details
[
'type'
]
==
"triggered"
)
)
:
?>
<option
value=
"triggered"
<?php
echo
(
$validation
->
set_value
(
'type'
,
$entry
->
details
[
'type'
])
==
"triggered"
)
?
'selected="selected"'
:
""
;
?>
>
System Triggered Notification
</option>
<?php
endif
;
?>
</select>
...
...
Please
register
or
sign in
to post a comment