fixed minor issues

This commit is contained in:
Stepan 2025-06-30 22:19:15 +02:00
parent 216a1f8b7a
commit d0ceea9a60
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class IngredientModel extends BaseModel
}
public static function get_ing_values()
{
$ing_list = self::filter(array());
$ing_list = self::filter(array(), count: 200);
$result = array();
foreach($ing_list as $ing) {
$result[] = [ $ing->get_id(), $ing->field_name . ' ('. $ing->field_unit_name .')' ];

View File

@ -4,5 +4,5 @@ use Lycoreco\Apps\Recipes\Models\RecipeModel;
function the_product_item(RecipeModel $recipe)
{
require_once APPS_PATH . '/Recipes/Templates/components/catalog-item.php';
include APPS_PATH . '/Recipes/Templates/components/catalog-item.php';
}