Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
druplan
Manage
Activity
Members
Labels
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
planning
druplan
Commits
be4d990f
Commit
be4d990f
authored
4 months ago
by
simon
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-I-8148-calendar-drag-and-drop' into '1.x'
fix: I-8148 calendar drag and drop See merge request
!156
parents
5f2e75ea
ac51ba8a
Branches
Branches containing commit
Tags
v1.0.0
1 merge request
!156
fix: I-8148 calendar drag and drop
Pipeline
#8927
passed with warnings with stages
in 4 minutes and 26 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/druplan_fc/src/Controller/CalendarController.php
+2
-1
2 additions, 1 deletion
modules/druplan_fc/src/Controller/CalendarController.php
with
2 additions
and
1 deletion
modules/druplan_fc/src/Controller/CalendarController.php
+
2
−
1
View file @
be4d990f
...
...
@@ -4,6 +4,7 @@ namespace Drupal\druplan_fc\Controller;
use
Drupal\Core\Access\CsrfTokenGenerator
;
use
Drupal\Core\Controller\ControllerBase
;
use
Drupal\Core\Datetime\DrupalDateTime
;
use
Drupal\Core\DependencyInjection\ContainerInjectionInterface
;
use
Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface
;
...
...
@@ -92,7 +93,7 @@ class CalendarController extends ControllerBase implements ContainerInjectionInt
if
(
$new_start
!==
$current
[
'value'
])
{
\Drupal
::
service
(
'resource_planning.event'
)
->
rescheduleEvent
(
$entity
,
new
\
DrupalDateTime
(
$new_start
,
timezone_open
(
'UTC'
))
new
DrupalDateTime
(
$new_start
,
timezone_open
(
'UTC'
))
);
}
elseif
(
$new_end
!==
$current
[
'end_value'
])
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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