Add missing $sort parameter in a particular use of get_related().

What I did

  • Add a missing sort parameter into a particular usage of get_related()

Implications

None

Setup

None

How to test

  • Test with branch feature/admin_screen_changes of Art Money.
  • Go to the admin screen for a line of credit.
  • Observe that with this fix, notes sort with newest at the top, as intended in this call (line 133 of modules/creditline/controllers/admin/credit.php)
$line->get_related('database/line_of_credit_notes_model', array('status' => 'active'), 'created DESC');

Task: https://preview.gotasman.com/task/detail/44968

Merge request reports

Loading