Skip to content

Commit

Permalink
🔖 Prepare v1.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Molkobain committed Jan 19, 2022
1 parent 4bb0301 commit 1cfd77e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

## [1.10.1] - 2022-01-19
### Changed
- Fix crash in "Graphical view" tab if opened during object creation

## [1.10.0] - 2022-01-02
### Added
- Add support for Czech and Sweidh thanks to @xmstspider
Expand Down Expand Up @@ -108,7 +112,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Added
- Initial release

[Unreleased]: https://github.com/Molkobain/itop-datacenter-view/compare/v1.10.0...HEAD
[Unreleased]: https://github.com/Molkobain/itop-datacenter-view/compare/v1.10.1...HEAD
[1.10.1]: https://github.com/Molkobain/itop-datacenter-view/releases/tag/v1.10.1
[1.10.0]: https://github.com/Molkobain/itop-datacenter-view/releases/tag/v1.10.0
[1.9.0]: https://github.com/Molkobain/itop-datacenter-view/releases/tag/v1.9.0
[1.8.0]: https://github.com/Molkobain/itop-datacenter-view/releases/tag/v1.8.0
Expand Down
10 changes: 3 additions & 7 deletions dist/molkobain-datacenter-view/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
<author><![CDATA[Guillaume Lajarige]]></author>
<label><![CDATA[Datacenter view]]></label>
<description><![CDATA[Visual representation of racks, enclosures & devices]]></description>
<version>1.10.0</version>
<release_date>2021-10-20</release_date>
<version_description><![CDATA[
* Add support for Czech and Sweidh thanks to @xmstspider
* Add counter on unmounted panels
* Fix minor visual glitches
* Remove compatibility with iTop 2.5 and older]]></version_description>
<version>1.10.1</version>
<release_date>2022-01-19</release_date>
<version_description><![CDATA[Fix crash in "Graphical view" tab if opened during object creation]]></version_description>
<itop_version_min>2.6.0</itop_version_min>
<status>stable</status>
<mandatory>false</mandatory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ public function OnDisplayRelations($oObject, WebPage $oPage, $bEditMode = false)
return;
}

// Don't display graphical view is element still being created
if ($oObject->IsNew()) {
return;
}

// Retrieve DatacenterView
$oDatacenterView = DatacenterViewFactory::BuildFromObject($oObject);
$oDatacenterView->SetObjectInEditMode($bEditMode);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/** @noinspection PhpUnhandledExceptionInspection */
SetupWebPage::AddModule(
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
'molkobain-datacenter-view/1.10.0', array(
'molkobain-datacenter-view/1.10.1', array(
// Identification
'label' => 'Datacenter view (racks visual representation)',
'category' => 'business',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/** @noinspection PhpUnhandledExceptionInspection */
SetupWebPage::AddModule(
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
'molkobain-datacenter-view/1.10.0', array(
'molkobain-datacenter-view/1.10.1', array(
// Identification
'label' => 'Datacenter view (racks visual representation)',
'category' => 'business',
Expand Down

0 comments on commit 1cfd77e

Please sign in to comment.