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
Showing with 14 additions and 14 deletions
+14 -14
...@@ -151,22 +151,22 @@ class archiveTask extends simplePlugin ...@@ -151,22 +151,22 @@ class archiveTask extends simplePlugin
function save (): array function save (): array
{ {
// Check if the SupAnn Account Status plugin is available (It should not happen as attributes verification will trigger errors before save) // 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')) { if (!class_available('supannAccountStatus')) {
msg_dialog::display( msg_dialog::display(
_('Error'), _('Error'),
_('The SupAnn Account Status plugin is not activated. This task cannot be saved or executed without it.'), _('The SupAnn Account Status plugin is not activated. This task cannot be saved or executed without it.'),
ERROR_DIALOG ERROR_DIALOG
); );
return []; // Return an empty array to indicate no action was taken return []; // Return an empty array to indicate no action was taken
} }
// Verify if this task has to be executed upon saving // Verify if this task has to be executed upon saving
$execTasks = $this->parent->getBaseObject()->fdSubTasksActivation ?? NULL; $execTasks = $this->parent->getBaseObject()->fdSubTasksActivation ?? NULL;
if ($execTasks) { if ($execTasks) {
$this->generateSlaveTasks(); $this->generateSlaveTasks();
} }
return parent::save(); 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