Replies: 1 comment 1 reply
-
I tried ->handleRecordCreation(
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Love the plugin!
Just wondering if there is a way to skip creating some records in the handleRecordCreation part? It keep complaining that I am not returning the created content.
->handleRecordCreation(
function ($data) {
$editedData = self::fixData($data);
if ($editedData['staff_id'] == null) {
// Skip creating this record
} else {
return self::createPosition($editedData);
}
}
)
Beta Was this translation helpful? Give feedback.
All reactions