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
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Jan-Hendrik Willms
Stud.IP
Commits
816c61be
Commit
816c61be
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
038a5bdc
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 @
816c61be
...
@@ -339,7 +339,8 @@ class Resources_ExportController extends AuthenticatedController
...
@@ -339,7 +339,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