Added created_by

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2024-09-19 17:01:48 +01:00
parent 6699995972
commit 02a29c71ef
6 changed files with 25 additions and 2 deletions
@@ -92,6 +92,9 @@ class ConsumablesController extends Controller
case 'supplier':
$consumables = $consumables->OrderSupplier($order);
break;
case 'created_by':
$consumables = $consumables->OrderByCreatedBy($order);
break;
default:
// This array is what determines which fields should be allowed to be sorted on ON the table itself.
// These must match a column on the consumables table directly.