Skip to content

Commit

Permalink
Merge branch 'master' into version-2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasholfeld authored Jan 19, 2024
2 parents 7977619 + e1a34ec commit 490e39b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function addRelation($page, $value, $relationField)
try {
$fieldData = YAML::decode($page->$relationField()->value());
} catch (Throwable $e) {
throw new Exception('Many to Many Field Plugin: related page or relatation field is faulty or missing. '.$e->getMessage());
throw new Exception('Many to Many Field Plugin: related page or relatation field is faulty or missing. ' .$e->getMessage());
}
// Writing to relations field
array_push($fieldData, $value);
Expand All @@ -134,4 +134,4 @@ function addRelation($page, $value, $relationField)
$page->update([$relationField => YAML::encode($fieldData)]);
return true;
}
}
}

0 comments on commit 490e39b

Please sign in to comment.