View Issue Details

IDProjectCategoryView StatusLast Update
1739RackTablesdefaultpublic2017-05-26 19:11
Reporterlaudanog Assigned Toinfrastation  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.20.12 
Target Version0.20.13Fixed in Version0.20.13 
Summary1739: Adding bulk ports visible label is not numbered
DescriptionWhen adding ports in bulk mode, the visible label for added ports just keep the label and is not consecutively numbered as local name.
Steps To ReproduceAdd ports to a network switch in bulk mode
Additional InformationI patch ophandlers.php as below:

*************** function addBulkPorts ()
*** 961,966 ****
--- 961,968 ----
      $added_count = $error_count = 0;
      if(strrpos($port_name, "%u") === false )
          $port_name .= '%u';
+ if(strrpos($port_label, "%u") === false )
+ $port_label .= '%u';
      for ($i=0,$c=$port_numbering_start; $i<$port_numbering_count; $i++,$c++)
      {
          commitAddPort ($object_id, @sprintf($port_name,$c), $port_type_id, @sprintf($port_label,$c), '');
TagsNo tags attached.

Relationships

related to 1761 new Multiple port creation from Ports tab fills in unexpected/unwanted data on Visible Label column 

Activities

infrastation

infrastation

2017-03-03 15:18

administrator   ~0003581

Commit ccbcb36 makes the proposed change on your behalf and it will be available in the next release (0.20.13). Thank you for the contribution.

Issue History

Date Modified Username Field Change
2017-03-03 11:18 laudanog New Issue
2017-03-03 15:18 infrastation Assigned To => infrastation
2017-03-03 15:18 infrastation Severity major => minor
2017-03-03 15:18 infrastation Status new => closed
2017-03-03 15:18 infrastation Resolution open => fixed
2017-03-03 15:18 infrastation Fixed in Version => 0.20.13
2017-03-03 15:18 infrastation Target Version => 0.20.13
2017-03-03 15:18 infrastation Note Added: 0003581
2017-05-26 19:11 infrastation Relationship added related to 1761