mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 23:18:43 +02:00
Sorting of lists: sort is now always executed server-side via the mechanism used by paginated lists. This fixes Trac #411, #421, #520
SVN:trunk[1931]
This commit is contained in:
@@ -323,6 +323,11 @@ abstract class AttributeDefinition
|
||||
// Note: This is the responsibility of this function to place backticks around column aliases
|
||||
return array('`'.$sClassAlias.$this->GetCode().'`');
|
||||
}
|
||||
|
||||
public function GetOrderByHint()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
// Import - differs slightly from SQL input, but identical in most cases
|
||||
//
|
||||
@@ -2120,6 +2125,13 @@ class AttributeEnum extends AttributeString
|
||||
if ($proposedValue == '') return null;
|
||||
return parent::MakeRealValue($proposedValue, $oHostObj);
|
||||
}
|
||||
|
||||
public function GetOrderByHint()
|
||||
{
|
||||
$aValues = $this->GetAllowedValues();
|
||||
|
||||
return Dict::Format('UI:OrderByHint_Values', implode(', ', $aValues));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user