Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
fcc82604
Commit
fcc82604
authored
Jun 30, 2010
by
Richard Mansfield
Browse files
Fix viewacl element for new column names
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
50898d02
Changes
2
Show whitespace changes
Inline
Side-by-side
htdocs/lib/view.php
View file @
fcc82604
...
...
@@ -669,8 +669,8 @@ class View {
foreach
(
$accessdata
as
$item
)
{
$accessrecord
=
new
StdClass
;
$accessrecord
->
view
=
$this
->
get
(
'id'
);
$accessrecord
->
allowcomments
=
(
bool
)
$item
[
'allowcomments'
];
$accessrecord
->
approvecomments
=
(
bool
)
$item
[
'approvecomments'
];
$accessrecord
->
allowcomments
=
(
int
)
!
empty
(
$item
[
'allowcomments'
]
)
;
$accessrecord
->
approvecomments
=
(
int
)
!
empty
(
$item
[
'approvecomments'
]
)
;
if
(
isset
(
$item
[
'startdate'
]))
{
$accessrecord
->
startdate
=
db_format_timestamp
(
$item
[
'startdate'
]);
}
...
...
htdocs/theme/raw/templates/form/viewacl.tpl
View file @
fcc82604
...
...
@@ -61,13 +61,13 @@ function renderAccessListItem(item) {
var
removeButton
=
BUTTON
(
{
'type'
:
'button'
}
,
'
{
{
str
tag
=
remove
}
}
'
);
var
allowfdbk
=
INPUT
({
'
type
'
:
'
checkbox
'
,
'
name
'
:
'
accesslist[
'
+
count
+
'
][allow
feedback
]
'
,
'
id
'
:
'
allow
feedback
'
+
count
,
'
name
'
:
'
accesslist[
'
+
count
+
'
][allow
comments
]
'
,
'
id
'
:
'
allow
comments
'
+
count
,
'
value
'
:
1
});
var
approvefdbk
=
INPUT
({
'
type
'
:
'
checkbox
'
,
'
name
'
:
'
accesslist[
'
+
count
+
'
][approve
feedback
]
'
,
'
id
'
:
'
approve
feedback
'
+
count
,
'
name
'
:
'
accesslist[
'
+
count
+
'
][approve
comments
]
'
,
'
id
'
:
'
approve
comments
'
+
count
,
'
value
'
:
1
});
var
dateInfo
=
TABLE
(
null
,
TBODY
(
null
,
...
...
@@ -94,10 +94,10 @@ function renderAccessListItem(item) {
)
);
if
(
item
[
'
approve
feedback
'
]
==
1
)
{
if
(
item
[
'
approve
comments
'
]
==
1
)
{
setNodeAttribute
(
allowfdbk
,
'
checked
'
,
true
);
}
if
(
item
[
'
allow
feedback
'
]
==
1
)
{
if
(
item
[
'
allow
comments
'
]
==
1
)
{
setNodeAttribute
(
approvefdbk
,
'
checked
'
,
true
);
}
var
cssClass
=
'
ai-container
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment