Commit 5946915340905f18bf67486f434c000c29473047

Authored by Jarrett Jordaan
1 parent 208791a1

KTC-764: Updated Workflows

Committed by: Jarrett Jordaan

Reviewed by: Megan Watson
plugins/ktcore/KTColumns.inc.php
... ... @@ -453,11 +453,11 @@ class AdvancedSingleSelectionColumn extends AdvancedSelectionColumn {
453 453  
454 454 class AdvancedWorkflowColumn extends AdvancedColumn {
455 455 var $namespace = 'ktcore.columns.workflow_state';
456   - var $sortable = false;
457   -
  456 + var $folder_sort_column = null;
  457 +
458 458 function AdvancedWorkflowColumn() {
459 459 $this->label = _kt("Workflow State");
460   - $this->sortable = true;
  460 + $this->sortable = true;
461 461 }
462 462  
463 463 // use inline, since its just too heavy to even _think_ about using smarty.
... ... @@ -478,6 +478,13 @@ class AdvancedWorkflowColumn extends AdvancedColumn {
478 478 );
479 479 }
480 480 }
  481 +
  482 + function addToDocumentQuery() {
  483 + return array(null,
  484 + null,
  485 + "DM.workflow_state_id" // Not a standard search column, so override.
  486 + );
  487 + }
481 488 }
482 489  
483 490 class CheckedOutByColumn extends AdvancedColumn {
... ...