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
- is blocked by
-
CORE-2264 Multicraft: Illegal string offset 'ip' when editing module row
- Closed