Commit e3750401 authored by Johan Cwiklinski's avatar Johan Cwiklinski Committed by Johan Cwiklinski

PR fixes

parent 362aadf0
......@@ -8,6 +8,9 @@ The present file will list all changes made to the project; according to the
### Added
- Ability to link project with problems and tickets.
### Changed
- `license_id` field in `glpi_items_operatingsystems` table has been renamed to `licenseid`
### API changes
#### Deprecated
......
......@@ -78,7 +78,7 @@ class Item_OperatingSystem extends DbTestCase {
'operatingsystemarchitectures_id' => $objects['Architecture']->getID(),
'operatingsystemversions_id' => $objects['Version']->getID(),
'operatingsystemkernelversions_id' => $objects['KernelVersion']->getID(),
'license_id' => $this->getUniqueString(),
'licenseid' => $this->getUniqueString(),
'license_number' => $this->getUniqueString()
];
$this->integer(
......@@ -114,7 +114,7 @@ class Item_OperatingSystem extends DbTestCase {
'operatingsystemarchitectures_id' => $objects['Architecture']->getID(),
'operatingsystemversions_id' => $objects['Version']->getID(),
'operatingsystemkernelversions_id' => $objects['KernelVersion']->getID(),
'license_id' => $this->getUniqueString(),
'licenseid' => $this->getUniqueString(),
'license_number' => $this->getUniqueString()
];
$this->integer(
......@@ -150,7 +150,7 @@ class Item_OperatingSystem extends DbTestCase {
'operatingsystemarchitectures_id' => $objects['Architecture']->getID(),
'operatingsystemversions_id' => $objects['Version']->getID(),
'operatingsystemkernelversions_id' => $objects['KernelVersion']->getID(),
'license_id' => $this->getUniqueString(),
'licenseid' => $this->getUniqueString(),
'license_number' => $this->getUniqueString()
];
$this->integer(
......@@ -175,7 +175,7 @@ class Item_OperatingSystem extends DbTestCase {
'operatingsystemarchitectures_id' => $objects['Architecture']->getID(),
'operatingsystemversions_id' => $objects['Version']->getID(),
'operatingsystemkernelversions_id' => $objects['KernelVersion']->getID(),
'license_id' => $this->getUniqueString(),
'licenseid' => $this->getUniqueString(),
'license_number' => $this->getUniqueString()
];
$this->integer(
......
......@@ -2660,7 +2660,7 @@ function generate_entity($ID_entity) {
'operatingsystemversions_id' => mt_rand(1, $MAX['os_version']),
'operatingsystemservicepacks_id' => mt_rand(1, $MAX['os_sp']),
'license_number' => "os sn $i",
'license_id' => "os id $i",
'licenseid' => "os id $i",
]));
// Add trackings
......
Markdown is supported
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