Correction de quelques bogues dans Recettes (backOffice)

This commit is contained in:
2021-05-17 22:25:27 +02:00
parent eb07edcf38
commit 75b8950fe0
8 changed files with 68 additions and 40 deletions

View File

@@ -57,9 +57,11 @@ class StepsLoop extends BaseLoop implements PropelSearchLoopInterface
{
$steps = RecipeStepsQuery::create();
if (null != $id = $this->getRecipeId()) {
if (null != $id = $this->getRecipeId())
$steps->filterByRecipeId($id);
}
else
return null;
$steps->orderByStep();
return $steps;