mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX Polymorphic has_one needs parent class name set
This commit is contained in:
parent
b5be6f02d2
commit
d11e568cdf
@ -205,6 +205,7 @@ JS
|
||||
{
|
||||
$submittedForm = SubmittedForm::create();
|
||||
$submittedForm->SubmittedByID = Security::getCurrentUser() ? Security::getCurrentUser()->ID : 0;
|
||||
$submittedForm->ParentClass = get_class($this->data());
|
||||
$submittedForm->ParentID = $this->ID;
|
||||
|
||||
// if saving is not disabled save now to generate the ID
|
||||
|
Loading…
Reference in New Issue
Block a user