Skip to content

Commit

Permalink
Job Listing Order Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Mar 20, 2023
1 parent 0659c5d commit 2d240d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AbraFlexi/MultiFlexi/Ui/ServicesForCompanyForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct($company, $tagProperties = array()) {

$appRow->addColumn(4, new FormGroup('<strong>' . $appData['nazev'] . '</strong> ', $intervalChooser))->addItem($launchButton);

$jobs = $jobber->listingQuery()->select(['id','begin','exitcode'],true)->where('company_id',$companyID)->where('app_id',$code)->limit(10)->fetchAll();
$jobs = $jobber->listingQuery()->select(['id','begin','exitcode'],true)->where('company_id',$companyID)->where('app_id',$code)->limit(10)->orderBy('job.id DESC')->fetchAll();

$jobList = new \Ease\TWB4\Table();
$jobList->addRowHeaderColumns([_('Job ID'),_('Launch time'),_('Exit Code')]);
Expand Down
2 changes: 1 addition & 1 deletion src/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
$jobber = new \AbraFlexi\MultiFlexi\Job();
$jobs = $jobber->listingQuery()->select(['job.id', 'job.company_id', 'job.begin', 'job.exitcode', 'user.login', 'job.launched_by', 'company.nazev'], true)->leftJoin('company ON company.id = job.company_id')
->leftJoin('user ON user.id = job.launched_by')
->where('app_id', $apps->getMyKey())->limit(10)->fetchAll();
->where('app_id', $apps->getMyKey())->limit(10)->orderBy('job.id DESC')->fetchAll();

$jobList = new \Ease\TWB4\Table();
$jobList->addRowHeaderColumns([_('Job ID'), _('Company'), _('Launch time'), _('Exit Code'), _('Launched by')]);
Expand Down

0 comments on commit 2d240d5

Please sign in to comment.