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
9087b984
Commit
9087b984
authored
Oct 26, 2011
by
Richard Mansfield
Committed by
Gerrit Code Review
Oct 26, 2011
Browse files
Merge "Fix pagination base url for plans block on dashboard (bug #881718)"
parents
1eb646b2
b6fa90d2
Changes
2
Show whitespace changes
Inline
Side-by-side
htdocs/artefact/plans/blocktype/plans/lib.php
View file @
9087b984
...
...
@@ -79,8 +79,10 @@ class PluginBlocktypePlans extends PluginBlocktype {
$pagination
=
false
;
}
else
{
$baseurl
=
$instance
->
get_view
()
->
get_url
();
$baseurl
.
=
((
false
===
strpos
(
$baseurl
,
'?'
))
?
'?'
:
'&'
)
.
'block='
.
$blockid
;
$pagination
=
array
(
'baseurl'
=>
$
instance
->
get_view
()
->
get_url
()
.
'&block='
.
$blockid
,
'baseurl'
=>
$
baseurl
,
'id'
=>
'block'
.
$blockid
.
'_pagination'
,
'datatable'
=>
'tasktable_'
.
$blockid
,
'jsonscript'
=>
'artefact/plans/viewtasks.json.php'
,
...
...
htdocs/artefact/plans/viewtasks.json.php
View file @
9087b984
...
...
@@ -46,8 +46,10 @@ if ($blockid = param_integer('block', null)) {
$tasks
=
ArtefactTypeTask
::
get_tasks
(
$configdata
[
'artefactid'
],
$offset
,
$limit
);
$template
=
'artefact:plans:taskrows.tpl'
;
$baseurl
=
$bi
->
get_view
()
->
get_url
();
$baseurl
.
=
((
false
===
strpos
(
$baseurl
,
'?'
))
?
'?'
:
'&'
)
.
'block='
.
$blockid
;
$pagination
=
array
(
'baseurl'
=>
$b
i
->
get_view
()
->
get_url
()
.
'&block='
.
$blockid
,
'baseurl'
=>
$b
aseurl
,
'id'
=>
'block'
.
$blockid
.
'_pagination'
,
'datatable'
=>
'tasktable_'
.
$blockid
,
'jsonscript'
=>
'artefact/plans/viewtasks.json.php'
,
...
...
Write
Preview
Supports
Markdown
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