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
Merge requests
!67
fix: wsod on PlanProjectForm
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix: wsod on PlanProjectForm
fix-wsod-PlanProjectForm
into
1.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
simon
requested to merge
fix-wsod-PlanProjectForm
into
1.x
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
1.x
1.x (base)
and
latest version
latest version
a850ed4b
1 commit,
1 year ago
1 file
+
4
−
2
Expand all files
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
src/Form/PlanProjectForm.php
+
4
−
2
Options
@@ -13,6 +13,7 @@ use Drupal\node\Entity\Node;
use
Drupal\resource_planning
\Entity\Calendar
;
use
Drupal\resource_planning
\Entity\EventType
;
use
Drupal\resource_planning
\EventServiceInterface
;
use
Drupal\resource_planning
\ConflictServiceInterface
;
use
Drupal\resource_planning_template
\Form\PlanEventForm
;
use
Drupal\resource_planning_template
\PlanServiceInterface
;
@@ -36,8 +37,8 @@ class PlanProjectForm extends PlanEventForm {
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The factory for configuration objects.
*/
public
function
__construct
(
PlanServiceInterface
$plan_service
,
RequestStack
$request
,
DateFormatterInterface
$date_formatter
,
ConflictServiceInterface
$conflict
,
ConfigFactoryInterface
$config_factory
)
{
parent
::
__construct
(
$plan_service
,
$request
,
$date_formatter
,
$conflict
);
public
function
__construct
(
PlanServiceInterface
$plan_service
,
RequestStack
$request
,
DateFormatterInterface
$date_formatter
,
EventServiceInterface
$event_service
,
ConflictServiceInterface
$conflict
,
ConfigFactoryInterface
$config_factory
)
{
parent
::
__construct
(
$plan_service
,
$request
,
$date_formatter
,
$event_service
,
$conflict
);
$this
->
setConfigFactory
(
$config_factory
);
}
@@ -49,6 +50,7 @@ class PlanProjectForm extends PlanEventForm {
$container
->
get
(
'resource_planning_template.plan'
),
$container
->
get
(
'request_stack'
),
$container
->
get
(
'date.formatter'
),
$container
->
get
(
'resource_planning.event'
),
$container
->
get
(
'resource_planning.conflict'
),
$container
->
get
(
'config.factory'
)
);