Skip to content

Commit

Permalink
refactor(question): useless instanciation
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jun 23, 2023
1 parent eb0acb6 commit 144fc49
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ private function checkBeforeSave($input) : array {
return [];
}
// - field type is compatible with accessibility of the form
$form = PluginFormcreatorCommon::getForm();
$section = PluginFormcreatorSection::getById($input[PluginFormcreatorSection::getForeignKeyField()]);
$form = PluginFormcreatorForm::getByItem($section);
if ($form->isPublicAccess() && !$this->field->isPublicFormCompatible()) {
Expand Down

0 comments on commit 144fc49

Please sign in to comment.