Skip to content

Commit

Permalink
fix: getFormId requires a form_stage_id to find the form_id, in the c…
Browse files Browse the repository at this point in the history
…ase where there is a form_stage_id and not a form_id in selectQuery
  • Loading branch information
rowasc committed Jun 9, 2019
1 parent 7b1aeaf commit ea27d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App/Repository/Form/AttributeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected function selectQuery(array $where = [], $form_id = null, $form_stage_i
$query = parent::selectQuery($where);

if (!$form_id && $form_stage_id) {
$form_id = $this->getFormId();
$form_id = $this->getFormId($form_stage_id);
}

// Restrict returned attributes based on User rights
Expand Down

0 comments on commit ea27d02

Please sign in to comment.