Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2272

MultiCraft: Dedicated ip row indexes broken

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0-b1
    • Fix Version/s: 4.0.0-b2
    • Component/s: None
    • Labels:
      None

      Description

      Under Multicraft -> Manage there are rows for dedicated ips. The indexing is totally broken.
      ````
      <td><?php $this->Form->fieldText('ips[][ip]', $this->Html->ifSet($vars->ips[$i]['ip']));?></td>
      <td><?php $this->Form->fieldText('ips[][port]',$this->Html->ifSet($vars->ips[$i]['port']),['class'=>'stretch port']);?></td>
      ````
      It should be
      ````
      <td><?php $this->Form->fieldText('ips[ip][]', $this->Html->ifSet($vars->ips[$i]['ip']));?></td>
      <td><?php $this->Form->fieldText('ips[port][]',$this->Html->ifSet($vars->ips[$i]['port']),['class'=>'stretch port']);?></td>
      ````
      and be converted on the backend using $this->ArrayHelper->keyToNumeric() on the ips array

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              jonathan Jonathan Reissmueller
              Reporter:
              jonathan Jonathan Reissmueller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                20/Oct/16

                Agile