This commit is contained in:
Garrett 2021-05-06 04:24:43 +00:00
parent b227731762
commit 507f29b045
8 changed files with 52 additions and 19 deletions

View File

@ -5,6 +5,7 @@ ChangeLog for PatchCableMgr
****************************************************
Contents
- Changes Introduced In 0.4.0
- Changes Introduced In 0.3.15
- Changes Introduced In 0.3.14
- Changes Introduced In 0.3.13
@ -34,6 +35,12 @@ Contents
****************************************************
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
**Changes introduced in 0.4.0
[Feature] Port description
[Enhance] Improved password hashing
[Enhance] Added support for ST connectors
[Fix] Hyphen encoded in search results
**Changes introduced in 0.3.15
[Fix] Floorplan object ports not available when making new connection
[Fix] HTML code for hyphens not converted when viewing floorplan object details

View File

@ -1 +1 @@
# 0.3.15
# 0.4.0

View File

@ -283,21 +283,12 @@ $qls->Security->check_auth_page('user.php');
<blockquote class="card-blockquote">
<select class="form-control m-b-10" id="selectPort" disabled></select>
<strong>Description:&nbsp&nbsp</strong>
<a href="#" id="inline-portDescription" data-type="text"></a>
<div class="checkbox">
<input id="checkboxPopulated" type="checkbox" disabled>
<label for="checkboxPopulated">Populated</label>
</div>
<table>
<tr>
<td class="objectDetailAlignRight">
<strong>Description:&nbsp&nbsp</strong>
</td>
<td>
<a href="#" id="inline-portDescription" data-type="text"></a>
</td>
</tr>
</table>
</blockquote>
</div>
</div>

View File

@ -105,7 +105,7 @@ var $qls;
} else if($this->currentVersion == '0.3.14') {
$this->update_0314_to_0315();
} else if($this->currentVersion == '0.3.15') {
$this->update_0315_to_0316();
$this->update_0315_to_040();
} else {
return true;
}
@ -116,13 +116,13 @@ var $qls;
/**
* Update from version 0.3.15 to 0.3.16
* Update from version 0.3.15 to 0.4.0
* @return Boolean
*/
function update_0315_to_0316() {
$incrementalVersion = '0.3.16';
function update_0315_to_040() {
$incrementalVersion = '0.4.0';
// Set app version to 0.3.16
// Set app version to 0.4.0
$this->qls->SQL->update('app_organization_data', array('version' => $incrementalVersion), array('id' => array('=', 1)));
// Update password hash
@ -156,6 +156,18 @@ var $qls;
$connectorPortTypeColumns = array('value', 'name', 'defaultOption');
$connectorPortTypeValues = array(8, 'ST', 0);
$this->qls->SQL->insert('shared_cable_connectorType', $connectorPortTypeColumns, $connectorPortTypeValues);
// Add port description table
$query = '';
$query .= 'CREATE TABLE `qls_app_port_description` (';
$query .= '`id` int(11) NOT NULL AUTO_INCREMENT,';
$query .= '`object_id` int(11) NOT NULL,';
$query .= '`object_face` int(11) NOT NULL,';
$query .= '`object_depth` int(11) NOT NULL,';
$query .= '`port_id` int(11) NOT NULL,';
$query .= '`description` varchar(255) NOT NULL,';
$query .= 'PRIMARY KEY(`id`))';
$this->qls->SQL->query($query);
}
/**

View File

@ -299,6 +299,18 @@ for($x=1; $x<MAX_TEMPLATE_RU; $x++) {
background-image: url("/assets/images/portIcons/SFP-gray.png");
}
.port.ST {
background-image: url("/assets/images/portIcons/SFP-black.png");
}
.port.ST.populated {
background-image: url("/assets/images/portIcons/SFP-red.png") !important;
}
.port.ST.endpointTrunked {
background-image: url("/assets/images/portIcons/SFP-gray.png");
}
.port {
height: 8px;
width: 8px;

View File

@ -3,7 +3,7 @@
define('AVAILABLE_CABLE_END_ID_COUNT', 100);
define('MAX_WALLJACK_PORTID', 100);
define('DEFAULT_FLOORPLAN_IMG', 'floorplan-default.png');
define('PCM_VERSION', '0.3.15');
define('PCM_VERSION', '0.4.0');
define('NEW_OBJECT_PREFIX', 'Object_');
define('NEW_LOCATION_PREFIX', 'Location_');

View File

@ -37,7 +37,7 @@ class Install {
* @var string $system_version - The version of the system
*/
var $system_version = '3.1.11';
var $app_version = '0.3.15';
var $app_version = '0.4.0';
/**
* @var string $install_error - Contains the installation error

View File

@ -534,4 +534,15 @@ CREATE TABLE `{database_prefix}shared_user_messages` (
`message` varchar(1000) NOT NULL,
`viewed` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY(`id`)
);
DROP TABLE IF EXISTS `{database_prefix}app_port_description`;
CREATE TABLE `{database_prefix}app_port_description` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`object_id` int(11) NOT NULL,
`object_face` int(11) NOT NULL,
`object_depth` int(11) NOT NULL,
`port_id` int(11) NOT NULL,
PRIMARY KEY(`id`)
);