Skip to content

Commit 144fc49

Browse files
committed
refactor(question): useless instanciation
1 parent eb0acb6 commit 144fc49

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

inc/question.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ private function checkBeforeSave($input) : array {
352352
return [];
353353
}
354354
// - field type is compatible with accessibility of the form
355-
$form = PluginFormcreatorCommon::getForm();
356355
$section = PluginFormcreatorSection::getById($input[PluginFormcreatorSection::getForeignKeyField()]);
357356
$form = PluginFormcreatorForm::getByItem($section);
358357
if ($form->isPublicAccess() && !$this->field->isPublicFormCompatible()) {

0 commit comments

Comments
 (0)