Skip to content
Snippets Groups Projects
Commit be4d990f authored by simon's avatar simon
Browse files

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
Tags v1.0.0
1 merge request!156fix: I-8148 calendar drag and drop
Pipeline #8927 passed with warnings with stages
in 4 minutes and 26 seconds
......@@ -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']) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment