jfquestiaux
Well-Known Member
I use a PHP list plugin on a list.
In the code, to retreive the affected row, I use
The problem is that no matter which row I check, $ids is always
[ids] => Array ( [1] => 1 )
What does change however is this
[purchases] => Array ( [1] => 2 )
where 'purchases' is the name of the databasetable.
If I check row 1, I have
[ids] => Array ( [1] => 1 )
[purchases] => Array ( [1] => 1 )
If I check row 2, I have
[ids] => Array ( [1] => 1 )
[purchases] => Array ( [1] => 2 )
The problem is (besides the fact that I don't think this is the correct behaviour) is that if I check rows 1 AND 2, I get
[ids] => Array ( [1] => 1 )
[purchases] => Array ( [1] => 2 )
so I can't cycling through the rows.
This is an important issue for me to solve.
In the code, to retreive the affected row, I use
Code:
$jinput = JFactory::getApplication()->input;
$ids = $jinput->get('ids', NULL, 'array');
foreach ( $ids AS $k ) {
$row = $model->getRow($k);
....
}
The problem is that no matter which row I check, $ids is always
[ids] => Array ( [1] => 1 )
What does change however is this
[purchases] => Array ( [1] => 2 )
where 'purchases' is the name of the databasetable.
If I check row 1, I have
[ids] => Array ( [1] => 1 )
[purchases] => Array ( [1] => 1 )
If I check row 2, I have
[ids] => Array ( [1] => 1 )
[purchases] => Array ( [1] => 2 )
The problem is (besides the fact that I don't think this is the correct behaviour) is that if I check rows 1 AND 2, I get
[ids] => Array ( [1] => 1 )
[purchases] => Array ( [1] => 2 )
so I can't cycling through the rows.
This is an important issue for me to solve.