try this:
$data['context_key'] = $modx->getOption('context_key', $data, $scriptProperties['wctx']);
$myEventStart = $data['eventstart'];
$myEventEnde = $data['eventend'];
if (empty($myEventStart)) {
$updateerror = true;
$errormsg = 'Sie müssen ein Startdatum setzen';
return;
}
if ($includeTVs) {
but you shouldn't modify the processors, which came with MIGX for your own purposes (they will be overridden on updates), but create own custom-processors.
There are two ways to use custom-processors in your projects:
1.
create a new folder in components/migx/processors/mgr/
for example components/migx/processors/mgr/childresources_spica/
copy all processors from /childresources/ to /childresources_spica/
change the processorspath in your MIGX-configuration from childresources to childrecources_spica
2.
create a new components-folder
for example components/childresources_spica/processors/mgr/childresources/
and put just the modified processors into the folder.
In this case it will use the unmodified processors from migx and if there exists custom-processors in your components-folder, it will use this one.
put in packagename of your MIGX-configuration: childresources_spica