Verified Commit 28f272c5 authored by dockx thibault's avatar dockx thibault
Browse files

:ambulance: Feat(CORE) - Verification if supann plugin is installed

Verification if supann plugin is installed
Showing with 9 additions and 2 deletions
+9 -2
...@@ -117,7 +117,14 @@ class tasksLifeCycle extends simplePlugin ...@@ -117,7 +117,14 @@ class tasksLifeCycle extends simplePlugin
{ {
parent::__construct($dn, $object, $parent, $mainTab); parent::__construct($dn, $object, $parent, $mainTab);
$this->attributesAccess['fdShowInformation']->setInLdap(FALSE); $this->attributesAccess['fdShowInformation']->setInLdap(FALSE);
$this->setSupannStates();
if (class_available('supannAccountStatus')) {
$this->setSupannStates();
} else {
$warning = new FusionDirectoryWarning(htmlescape(_('The plugin Supann does not seem to be installed !')));
$warning->display();
}
} }
/* /*
......
...@@ -28,7 +28,7 @@ class tasksManagement extends management ...@@ -28,7 +28,7 @@ class tasksManagement extends management
* TasksColumn is a new class for Tasks based on argonaut column definition * TasksColumn is a new class for Tasks based on argonaut column definition
*/ */
public static $columns = [ public static $columns = [
//below fdTasksMailObject must be change to have a type defined within task creation (new ldap attributes ?hidden) //below fdTasksMailObject must be changed to have a type defined within task creation (new ldap attributes ?hidden)
['LinkColumn', ['attributes' => 'cn', 'label' => 'Tasks']], ['LinkColumn', ['attributes' => 'cn', 'label' => 'Tasks']],
['TasksColumn', ['attributes' => 'fdTasksMailObject', 'label' => 'Types']], ['TasksColumn', ['attributes' => 'fdTasksMailObject', 'label' => 'Types']],
['Column', ['attributes' => 'fdTasksCreationDate', 'label' => 'Creation Date']], ['Column', ['attributes' => 'fdTasksCreationDate', 'label' => 'Creation Date']],
......
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