Verified Commit 46be0973 authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: refactor(archive): streamline save method by removing unnecessary whitespace...

:sparkles: refactor(archive): streamline save method by removing unnecessary whitespace and improving readability
parent 8e846703
No related merge requests found
Showing with 14 additions and 14 deletions
+14 -14
......@@ -151,22 +151,22 @@ class archiveTask extends simplePlugin
function save (): array
{
// Check if the SupAnn Account Status plugin is available (It should not happen as attributes verification will trigger errors before save)
if (!class_available('supannAccountStatus')) {
msg_dialog::display(
_('Error'),
_('The SupAnn Account Status plugin is not activated. This task cannot be saved or executed without it.'),
ERROR_DIALOG
);
return []; // Return an empty array to indicate no action was taken
}
if (!class_available('supannAccountStatus')) {
msg_dialog::display(
_('Error'),
_('The SupAnn Account Status plugin is not activated. This task cannot be saved or executed without it.'),
ERROR_DIALOG
);
return []; // Return an empty array to indicate no action was taken
}
// Verify if this task has to be executed upon saving
$execTasks = $this->parent->getBaseObject()->fdSubTasksActivation ?? NULL;
if ($execTasks) {
$this->generateSlaveTasks();
}
if ($execTasks) {
$this->generateSlaveTasks();
}
return parent::save();
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment