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
704a5a59
Commit
704a5a59
authored
Sep 28, 2007
by
Penny Leach
Committed by
Nigel McNie
Oct 17, 2007
Browse files
fixing weird bug where moving blocks to the very bottom of a column wasn't working
parent
92b8d352
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/view.php
View file @
704a5a59
...
@@ -866,6 +866,13 @@ class View {
...
@@ -866,6 +866,13 @@ class View {
// and set it in the object for good measure.
// and set it in the object for good measure.
$bi
->
set
(
'order'
,
$values
[
'order'
]);
$bi
->
set
(
'order'
,
$values
[
'order'
]);
}
}
else
if
(
$values
[
'order'
]
==
$this
->
get_current_max_order
(
$values
[
'column'
]))
{
// moving to the very bottom
set_field
(
'block_instance'
,
'order'
,
0
,
'view'
,
$this
->
get
(
'id'
),
'column'
,
$values
[
'column'
],
'order'
,
$bi
->
get
(
'order'
));
$this
->
shuffle_helper
(
'order'
,
'down'
,
'>='
,
$bi
->
get
(
'order'
),
'"column" = ?'
,
array
(
$bi
->
get
(
'column'
)));
set_field
(
'block_instance'
,
'order'
,
$values
[
'order'
],
'view'
,
$this
->
get
(
'id'
),
'column'
,
$values
[
'column'
],
'order'
,
0
);
$bi
->
set
(
'order'
,
$values
[
'order'
]);
}
else
{
else
{
$this
->
shuffle_column
(
$bi
->
get
(
'column'
),
$values
[
'order'
],
$bi
->
get
(
'order'
));
$this
->
shuffle_column
(
$bi
->
get
(
'column'
),
$values
[
'order'
],
$bi
->
get
(
'order'
));
}
}
...
...
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