Skip to content
Snippets Groups Projects

Issue #3204113: An error occurred while submitting the form with an image attached.

Merged Issue #3204113: An error occurred while submitting the form with an image attached.
Merged Oleksandr Syvyi requested to merge issue/pmfs-3204113:3204113-an-error-occurred into 1.0.x
1 file
+ 5
5
Compare changes
  • Side-by-side
  • Inline
+ 5
5
@@ -65,11 +65,11 @@ class Pmfs {
@@ -65,11 +65,11 @@ class Pmfs {
protected $messenger;
protected $messenger;
/**
/**
* Current request.
* Request stack.
*
*
* @var \Symfony\Component\HttpFoundation\Request
* @var \Symfony\Component\HttpFoundation\RequestStack
*/
*/
protected $request;
protected $requestStack;
/**
/**
* Static storage of loaded form settings.
* Static storage of loaded form settings.
@@ -110,7 +110,7 @@ class Pmfs {
@@ -110,7 +110,7 @@ class Pmfs {
$this->state = $state;
$this->state = $state;
$this->lock = $lock;
$this->lock = $lock;
$this->messenger = $messenger;
$this->messenger = $messenger;
$this->request = $request_stack->getCurrentRequest();
$this->requestStack = $request_stack;
}
}
/**
/**
@@ -515,7 +515,7 @@ class Pmfs {
@@ -515,7 +515,7 @@ class Pmfs {
'pmfs',
'pmfs',
$type,
$type,
$id,
$id,
$this->request->cookies->get(static::COOKIE),
$this->requestStack->getCurrentRequest()->cookies->get(static::COOKIE),
]);
]);
}
}
return $this->userGeneratedKeys[$type][$id];
return $this->userGeneratedKeys[$type][$id];
Loading