TIST-27: UserMenu model and ajax endpoint to add #17

Merged
steve_dekart merged 3 commits from TIST-27 into develop 2025-06-29 10:03:40 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 4b2cac054f - Show all commits

View File

@ -39,7 +39,7 @@ class RecipeUserMenu extends BaseModel
{
require_once INCLUDES_PATH . '/Const/recipes.php';
if(!in_array($this->field_dayofweek, DAY_OF_WEEKS))
if(!in_array($this->field_dayofweek, DAYS_OF_WEEK))
return ['Day of Week is not valid'];
$recipe = RecipeModel::get(array(

View File

@ -1,5 +1,5 @@
<?php
define('DAY_OF_WEEKS', array(
define('DAYS_OF_WEEK', array(
'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'
));