Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Uni Osnabrück
Stud.IP
Commits
6dac8fe7
Commit
6dac8fe7
authored
1 year ago
by
Moritz Strohm
Committed by
Jan-Hendrik Willms
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
regard takes_place column before selecting resource booking intervals for exporting, re #1703
Merge request
studip/studip!2024
parent
bc20f1c4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/resources/export.php
+2
-1
2 additions, 1 deletion
app/controllers/resources/export.php
with
2 additions
and
1 deletion
app/controllers/resources/export.php
+
2
−
1
View file @
6dac8fe7
...
@@ -342,7 +342,8 @@ class Resources_ExportController extends AuthenticatedController
...
@@ -342,7 +342,8 @@ class Resources_ExportController extends AuthenticatedController
foreach
(
$resources
as
$resource
)
{
foreach
(
$resources
as
$resource
)
{
//Retrieve the bookings in the specified time range:
//Retrieve the bookings in the specified time range:
$intervals
=
ResourceBookingInterval
::
findBySql
(
$intervals
=
ResourceBookingInterval
::
findBySql
(
'resource_id = :resource_id AND begin < :end AND end > :begin ORDER BY begin, end'
,
"`takes_place` = 1 AND `resource_id` = :resource_id AND `begin` < :end AND `end` > :begin
ORDER BY `begin`, `end`"
,
[
[
'resource_id'
=>
$resource
->
id
,
'resource_id'
=>
$resource
->
id
,
'begin'
=>
$this
->
begin
->
getTimestamp
(),
'begin'
=>
$this
->
begin
->
getTimestamp
(),
...
...
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