Catched :
Indeed, you do need also need locallib.php in restore for the same reasons. I moved all module internal functions to locallib for API clarity, restorelib.php was not aware of that.
I found also a misnamed function §95
$status = scheduler_appointments_restore_mods ($mod->id, $newid, $info, $restore);
needs a 's'.
Finally, in case you use other modules from ethnoinformatique.fr, you moight protect the last function declaration in locallib.php, just like this.
/**
* adds an error css marker in case of matching error
* @param array $errors the current error set
* @param string $errorkey
*/
if (!function_exists('print_error_class')){
function print_error_class($errors, $errorkeylist){
if ($errors){
foreach($errors as $anError){
if ($anError->on == '') continue;
if (preg_match("/\\b{$anError->on}\\b/" ,$errorkeylist)){
echo " class=\"formerror\" ";
return;
}
}
}
}
}
this is I confess, an architectural irresolution of this module set, that used a redundant utility function in several modules, as we have no common "third-party" lib space that would be easily usable for making blind installs.
I checked that some data actually do not restore in the scheduler. I work on it before publishing next release.
I'll fix all this in release 8.
I will add a little enhancement to release 8, that is, allowing to distribute grade and/or comment on all participants of the slot when grading the appointment. This would fasten operations when concluding a grouped meeting.
Cheers.