Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Opencast
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
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
Plugins
Opencast
Commits
6f9a3df8
Verified
Commit
6f9a3df8
authored
1 year ago
by
Till Glöggler
Browse files
Options
Downloads
Patches
Plain Diff
fix some regressions
parent
515553e0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
classes/OCRestClient/SchedulerClient.php
+1
-1
1 addition, 1 deletion
classes/OCRestClient/SchedulerClient.php
cronjobs/refresh_scheduled_events.php
+5
-3
5 additions, 3 deletions
cronjobs/refresh_scheduled_events.php
with
6 additions
and
4 deletions
classes/OCRestClient/SchedulerClient.php
+
1
−
1
View file @
6f9a3df8
...
@@ -141,7 +141,7 @@ class SchedulerClient extends OCRestClient
...
@@ -141,7 +141,7 @@ class SchedulerClient extends OCRestClient
// also reset any custom made changes to the recording length, to prevent any unwanted effects for alternate schedules (if even activated)
// also reset any custom made changes to the recording length, to prevent any unwanted effects for alternate schedules (if even activated)
$event
->
start
=
$date
->
date
;
$event
->
start
=
$date
->
date
;
$event
->
end
=
$date
->
dat
e
;
$event
->
end
=
$date
->
end_tim
e
;
$event
->
store
();
$event
->
store
();
}
}
...
...
This diff is collapsed.
Click to expand it.
cronjobs/refresh_scheduled_events.php
+
5
−
3
View file @
6f9a3df8
...
@@ -88,9 +88,11 @@ class RefreshScheduledEvents extends CronJob
...
@@ -88,9 +88,11 @@ class RefreshScheduledEvents extends CronJob
unset
(
$curated_events
[
$se
[
'event_id'
]]);
unset
(
$curated_events
[
$se
[
'event_id'
]]);
if
(
$cd
->
room_booking
->
resource_id
==
$se
[
'resource_id'
]
if
(
$cd
->
room_booking
->
resource_id
==
$se
[
'resource_id'
]
||
$cd
->
room_booking
->
date
!=
$se
[
'coursedate_start'
]
&&
(
||
$cd
->
room_booking
->
end_time
!=
$se
[
'coursedate_end'
])
$cd
->
room_booking
->
date
!=
$se
[
'coursedate_start'
]
{
||
$cd
->
room_booking
->
end_time
!=
$se
[
'coursedate_end'
]
)
)
{
$scheduler_client
=
SchedulerClient
::
create
(
$se
[
'seminar_id'
]);
$scheduler_client
=
SchedulerClient
::
create
(
$se
[
'seminar_id'
]);
$scheduler_client
->
updateEventForSeminar
(
$se
[
'seminar_id'
],
$se
[
'resource_id'
],
$se
[
'date_id'
],
$se
[
'event_id'
]);
$scheduler_client
->
updateEventForSeminar
(
$se
[
'seminar_id'
],
$se
[
'resource_id'
],
$se
[
'date_id'
],
$se
[
'event_id'
]);
...
...
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