Fix meta services for recurrences.

This commit is contained in:
James Cole
2021-03-15 10:31:11 +01:00
parent 1783f0beb1
commit a0b46d9d8a
14 changed files with 553 additions and 525 deletions

View File

@@ -67,8 +67,8 @@ class CategoryUpdateService
*/
public function update(Category $category, array $data): Category
{
$oldName = $category->name;
if(array_key_exists('name', $data)) {
$oldName = $category->name;
if (array_key_exists('name', $data)) {
$category->name = $data['name'];
$category->save();
// update triggers and actions