Hi
as I said elsewhere I'm working on importing records via command line
I'm using joomla cli framework and hacking around contollers/import.php
Good: At this point records are importing ok
Bad: After import I'm creating a problem that causes admin views to fail on a query.
This happens on views for section and type
and the error is in /admin/comp/models/sections.php and types.php
at the end of those models in function getListQuery is this snippet:
$orderCol = $this->state->get ( 'list.ordering' );
$orderDirn = $this->state->get ( 'list.direction' );
$query->order ( $db->escape ( $orderCol . ' ' . $orderDirn ) );
$query->group('a.id');
'list.ordering' and 'list.direction' arent set so query fails because no order by clause.
@sergey: still searching while I was typing this I found you posted here:
edit: try this...
http://stackoverflow.com/questions/12880159/sorting-columns-in-joomla-populatestate-method
this looks like exactly the problem and I suspect you must know exactly what I'm getting wrong here. any clue please?
Hi
as I said elsewhere I'm working on importing records via command line
I'm using joomla cli framework and hacking around contollers/import.php
Good: At this point records are importing ok
Bad: After import I'm creating a problem that causes admin views to fail on a query.
This happens on views for section and type
and the error is in /admin/comp/models/sections.php and types.php
at the end of those models in function getListQuery is this snippet:
'list.ordering' and 'list.direction' arent set so query fails because no order by clause.
@sergey: still searching while I was typing this I found you posted here:
edit: try this...
http://stackoverflow.com/questions/12880159/sorting-columns-in-joomla-populatestate-method
this looks like exactly the problem and I suspect you must know exactly what I'm getting wrong here. any clue please?