Merge pull request #679 from creative-commoners/pulls/5.0/fix-polymorphic-parent
FIX Polymorphic has_one needs parent class name set
This commit is contained in:
commit
8f320e65ef
|
@ -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