Skip to content

Commit

Permalink
Show edited_on instead of create date in datagrid
Browse files Browse the repository at this point in the history
  • Loading branch information
jessedobbelaere committed Jun 2, 2015
1 parent 5ac1806 commit 44d120a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Backend/Modules/Menu/Actions/Alacarte.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected function loadDataGrid($categoryId, $categoryName)
// reform date
$dataGrid->setColumnFunction(
array('Backend\Core\Engine\DataGridFunctions', 'getLongDate'),
array('[created_on]'), 'created_on', true
array('[edited_on]'), 'edited_on', true
);

// drag and drop sequencing
Expand Down
2 changes: 1 addition & 1 deletion src/Backend/Modules/Menu/Actions/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected function loadDataGrid()
// reform date
$this->dataGrid->setColumnFunction(
array('Backend\Core\Engine\DataGridFunctions', 'getLongDate'),
array('[created_on]'), 'created_on', true
array('[edited_on]'), 'edited_on', true
);

// drag and drop sequencing
Expand Down
4 changes: 2 additions & 2 deletions src/Backend/Modules/Menu/Engine/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class Model
{
const QRY_DATAGRID_BROWSE =
'SELECT i.id, i.hidden, i.title, UNIX_TIMESTAMP(i.created_on) AS created_on, i.sequence
'SELECT i.id, i.hidden, i.title, UNIX_TIMESTAMP(i.edited_on) AS edited_on, i.sequence
FROM menu AS i
WHERE i.language = ?
ORDER BY i.sequence';
Expand All @@ -35,7 +35,7 @@ class Model
ORDER BY c.sequence ASC';

const QRY_DATAGRID_BROWSE_ALACARTE =
'SELECT i.id, i.hidden, i.title, UNIX_TIMESTAMP(i.created_on) AS created_on, i.sequence, i.price
'SELECT i.id, i.hidden, i.title, UNIX_TIMESTAMP(i.edited_on) AS edited_on, i.sequence, i.price
FROM menu_alacarte AS i
WHERE i.language = ? AND category_id = ?
ORDER BY i.sequence';
Expand Down

0 comments on commit 44d120a

Please sign in to comment.