FIX Polymorphic has_one needs parent class name set

This commit is contained in:
Robbie Averill 2017-10-26 15:40:48 +13:00
parent b5be6f02d2
commit d11e568cdf

View File

@ -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