Skip to content

Commit

Permalink
fix(formanswer): select inherited class if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jul 22, 2022
1 parent adb9fba commit 955dc96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,8 @@ protected function showMyLastForms() : void {
$userId = Session::getLoginUserID();
echo '<div id="plugin_formcreator_last_req_forms" class="card">';
echo '<div class="card-title">'.sprintf(__('My %1$d last forms (requester)', 'formcreator'), $limit).'</div>';
$result = PluginFormcreatorFormAnswer::getMyLastAnswersAsRequester($limit);
$formAnswer = PluginFormcreatorCommon::getFormAnswer();
$result = $formAnswer::getMyLastAnswersAsRequester($limit);
if ($result->count() == 0) {
echo '<div class="card-body text-center text-muted">'.__('No form posted yet', 'formcreator').'</div>';
} else {
Expand Down

0 comments on commit 955dc96

Please sign in to comment.