Skip to content

Commit

Permalink
Merge pull request #1879 from Evarisk/develop
Browse files Browse the repository at this point in the history
1.13.0
  • Loading branch information
nicolas-eoxia authored Aug 30, 2024
2 parents 86a53ce + e0013d7 commit c93b934
Show file tree
Hide file tree
Showing 28 changed files with 600 additions and 400 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
## Informations

- Numéro du module : 436301
- Dernière mise à jour : 03/06/2023
- Dernière mise à jour : 28/08/2024
- Éditeur : [Evarisk](https://evarisk.com)
- Thème : Eldy Menu
- Licence : GPLv3
- Disponible sur : Windows - MacOS - Linux

### Version

- Version : 1.12.0
- Version : 1.13.0
- PHP : 7.4.33
- Compatibilité : Dolibarr 17.0.0 - 19.0.2
- Saturne Framework : 1.5.0
- Compatibilité : Dolibarr 17.0.0 - 19.0.3
- Saturne Framework : 1.6.0

## Liens

Expand Down
3 changes: 3 additions & 0 deletions admin/sheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
* Actions
*/

// Actions set_mod, update_mask
require_once __DIR__ . '/../../saturne/core/tpl/actions/admin_conf_actions.tpl.php';

// Extrafields actions.
require DOL_DOCUMENT_ROOT.'/core/actions_extrafields.inc.php';

Expand Down
2 changes: 1 addition & 1 deletion class/answer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Answer extends SaturneObject
/**
* @var int Does object support extrafields ? 0 = No, 1 = Yes.
*/
public int $isextrafieldmanaged = 0;
public $isextrafieldmanaged = 0;

/**
* @var string Name of icon for answer. Must be a 'fa-xxx' fontawesome code (or 'fa-xxx_fa_color_size') or 'answer@digiquali' if picto is file 'img/object_answer.png'.
Expand Down
22 changes: 16 additions & 6 deletions class/control.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Control extends SaturneObject
/**
* @var int Does object support extrafields ? 0 = No, 1 = Yes.
*/
public int $isextrafieldmanaged = 1;
public $isextrafieldmanaged = 1;

/**
* @var string Name of icon for control. Must be a 'fa-xxx' fontawesome code (or 'fa-xxx_fa_color_size') or 'control@digiquali' if picto is file 'img/object_control.png'.
Expand Down Expand Up @@ -122,17 +122,17 @@ class Control extends SaturneObject
'next_control_date' => ['type' => 'date', 'label' => 'NextControlDate', 'enabled' => 1, 'position' => 65, 'notnull' => 0, 'visible' => 2, 'showinpwa' => 0],
'success_rate' => ['type' => 'real', 'label' => 'SuccessScore', 'enabled' => 1, 'position' => 67, 'notnull' => 0, 'visible' => 2, 'showinpwa' => 0, 'help' => 'PercentageValue'],
'status' => ['type' => 'smallint', 'label' => 'Status', 'enabled' => 1, 'position' => 70, 'notnull' => 1, 'visible' => 5, 'showinpwa' => 0, 'index' => 1, 'default' => 0, 'arrayofkeyval' => [0 => 'StatusDraft', 1 => 'Validated', 2 => 'Locked', 3 => 'Archived']],
'label' => ['type' => 'varchar(255)', 'label' => 'Label', 'enabled' => 1, 'position' => 11, 'notnull' => 0, 'visible' => 1, 'showinpwa' => 1, 'searchall' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx'],
'note_public' => ['type' => 'html', 'label' => 'NotePublic', 'enabled' => 1, 'position' => 80, 'notnull' => 0, 'visible' => 0, 'showinpwa' => 0],
'note_private' => ['type' => 'html', 'label' => 'NotePrivate', 'enabled' => 1, 'position' => 90, 'notnull' => 0, 'visible' => 0, 'showinpwa' => 0],
'verdict' => ['type' => 'smallint', 'label' => 'Verdict', 'enabled' => 1, 'position' => 110, 'notnull' => 0, 'visible' => 5, 'showinpwa' => 1, 'index' => 1, 'positioncard' => 20, 'arrayofkeyval' => [0 => '', 1 => 'OK', 2 => 'KO', 3 => 'N/A']],
'photo' => ['type' => 'text', 'label' => 'Photo', 'enabled' => 1, 'position' => 120, 'notnull' => 0, 'visible' => 0, 'showinpwa' => 0],
'track_id' => ['type' => 'text', 'label' => 'TrackID', 'enabled' => 1, 'position' => 125, 'notnull' => 0, 'visible' => 2, 'showinpwa' => 0],
'fk_user_creat' => ['type' => 'integer:User:user/class/user.class.php', 'label' => 'UserAuthor', 'picto' => 'user', 'enabled' => 1, 'position' => 130, 'notnull' => 1, 'visible' => 0, 'showinpwa' => 0, 'foreignkey' => 'user.rowid'],
'fk_user_modif' => ['type' => 'integer:User:user/class/user.class.php', 'label' => 'UserModif', 'picto' => 'user', 'enabled' => 1, 'position' => 140, 'notnull' => 0, 'visible' => 0, 'showinpwa' => 0, 'foreignkey' => 'user.rowid'],
'fk_sheet' => ['type' => 'integer:Sheet:digiquali/class/sheet.class.php', 'label' => 'Sheet', 'picto' => 'fontawesome_fa-list_fas_#d35968', 'enabled' => 1, 'position' => 11, 'notnull' => 1, 'visible' => 5, 'showinpwa' => 0, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'digiquali_sheet.rowid'],
'fk_user_controller' => ['type' => 'integer:User:user/class/user.class.php:1', 'label' => 'Controller', 'picto' => 'user', 'enabled' => 1, 'position' => 12, 'notnull' => 1, 'visible' => 1, 'showinpwa' => 0, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'user.rowid', 'positioncard' => 1],
'projectid' => ['type' => 'integer:Project:projet/class/project.class.php:1', 'label' => 'Project', 'picto' => 'project', 'enabled' => 1, 'position' => 13, 'notnull' => 0, 'visible' => 1, 'showinpwa' => 0, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'projet.rowid', 'positioncard' => 2]

'fk_sheet' => ['type' => 'integer:Sheet:digiquali/class/sheet.class.php', 'label' => 'Sheet', 'picto' => 'fontawesome_fa-list_fas_#d35968', 'enabled' => 1, 'position' => 12, 'notnull' => 1, 'visible' => 5, 'showinpwa' => 0, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'digiquali_sheet.rowid'],
'fk_user_controller' => ['type' => 'integer:User:user/class/user.class.php:1', 'label' => 'Controller', 'picto' => 'user', 'enabled' => 1, 'position' => 13, 'notnull' => 1, 'visible' => 1, 'showinpwa' => 0, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'user.rowid', 'positioncard' => 1],
'projectid' => ['type' => 'integer:Project:projet/class/project.class.php:1', 'label' => 'Project', 'picto' => 'project', 'enabled' => 1, 'position' => 14, 'notnull' => 0, 'visible' => 1, 'showinpwa' => 0, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'projet.rowid', 'positioncard' => 2]
];

/**
Expand Down Expand Up @@ -175,6 +175,11 @@ class Control extends SaturneObject
*/
public $status;

/**
* @var string|null Label.
*/
public ?string $label;

/**
* @var string Public note.
*/
Expand Down Expand Up @@ -565,6 +570,11 @@ public function createFromClone(User $user, int $fromID, array $options): int
if (property_exists($object, 'verdict')) {
$object->verdict = 0;
}
if (!empty($options['label'])) {
if (property_exists($object, 'label')) {
$object->label = $options['label'];
}
}
if (empty($options['photos'])) {
$object->photo = '';
}
Expand Down Expand Up @@ -1111,7 +1121,7 @@ class ControlLine extends SaturneObject
/**
* @var int Does object support extrafields ? 0 = No, 1 = Yes
*/
public int $isextrafieldmanaged = 1;
public $isextrafieldmanaged = 1;

/**
* 'type' field format:
Expand Down
Loading

0 comments on commit c93b934

Please sign in to comment.