View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
1335 | RackTables | default | public | 2014-09-08 12:43 | 2014-09-09 12:17 |
Reporter | apromix007 | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 0.20.8 | ||||
Summary | 1335: Error in contribs/local_portgenerator.php: Port type XXX is not found or not a port type | ||||
Description | Hi .. This Port Generator is not working with RT v.0.20.8, so I send the new fixed version. Changelog: * Compatibility with RT v.0.20.8, because DB-Model was changed (RactTables Changelog: update: move port outer interfaces from the dictionary) * Port listing with InnerInterface ID (Example: 10-1588 QSFP+ => empty QSFP+) * some HTML Tags bugfixed The file with new version is attached. Bye .. | ||||
Additional Information | Path (for quick view of changes): --- local_portgenerator.php-orig 2014-09-05 14:06:59.148968633 +0200 +++ local_portgenerator.php 2014-09-08 12:16:31.825551268 +0200 @@ -136,6 +136,17 @@ //------------------------------------ //*** Added support for PortInnterInterface *** // +// +//Version 1.5 +//Revised by Marian Stetina +//09-2014 +//------------------------------------ +//Changes: +//------------------------------------ +//*** Compatibility with RT v.0.20.8, because DB-Model was changed (RactTables Changelog: update: move port outer interfaces from the dictionary) +//*** Port listing with InnerInterface ID (Example: 10-1588 QSFP+ => empty QSFP+) +//*** some HTML Tags bugfixed +// $tab['object']['portgenerator'] = 'Port generator'; $trigger['object']['portgenerator'] = 'localtrigger_PortGenerator'; @@ -296,10 +307,10 @@ } if ($thisOrder[1]==1 || strpos($thisOrder[2],"%u")!==false) { if (preg_match ('/^([[:digit:]]+)-([[:digit:]]+)$/', $thisOrder[3], $matches)) - $oif_id = $matches[2]; + $oif_id = $matches[2]; else $oif_id = $thisOrder[3]; - $q = "SELECT dict_value FROM Dictionary WHERE dict_key='$oif_id' AND chapter_id=2 "; + $q = "SELECT oif_name FROM PortOuterInterface WHERE id='$oif_id'"; $result = usePreparedSelectBlade ($q); if ($result==NULL) { print_r($dbxlink->errorInfo()); die(); } if ($row3 = $result->fetch (PDO::FETCH_NUM)) { @@ -386,14 +397,15 @@ // print "<center>"; print $genText." \n"; | ||||
Tags | No tags attached. | ||||
Items in the contribs repository are written and maintained by individuals, not necessarily the RackTables team. Please submit your patch to the original author. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-09-08 12:43 | apromix007 | New Issue | |
2014-09-08 12:43 | apromix007 | File Added: local_portgenerator.php | |
2014-09-08 17:14 | adoom42 | Note Added: 0002481 | |
2014-09-08 17:14 | adoom42 | Status | new => closed |
2014-09-08 17:14 | adoom42 | Resolution | open => no change required |
2014-09-08 17:14 | adoom42 | Additional Information Updated |