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
-
Activity
Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | In Progress [ 3 ] |
| 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->numericToKey() on both ips[ip][] and ips[ports][] |
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 both ips[ip][] and ips[ports][] |
| 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 both ips[ip][] and ips[ports][] |
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 |
Automated transition triggered when Jonathan Reissmueller created pull request #7 in Stash -
| Status | In Progress [ 3 ] | In Review [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Link | This issue relates to CORE-2274 [ CORE-2274 ] |
| Sprint | 4.0.0 Sprint 9 [ 27 ] |
| Rank | Ranked higher |
| Sprint | 4.0.0 Sprint 9 [ 27 ] | 4.0.0 Sprint 9, 4.0.0 Sprint 10 [ 27, 28 ] |
Automated transition triggered when Tyson Phillips (Inactive) merged pull request #7 in Stash -
| Status | In Review [ 5 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Security | Private [ 10000 ] |
| Status | Reopened [ 4 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |