mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 01:58:47 +02:00
N°3551 - Migrate module to new UIBlock system : Customer Survey
This commit is contained in:
@@ -168,4 +168,19 @@ class DataTable extends UIContentBlock
|
||||
return "$('#".$this->sId."').DataTable().clearPipeline();
|
||||
$('#".$this->sId."').DataTable().ajax.reload(null, false);";
|
||||
}
|
||||
|
||||
public function GetDisabledSelect(): array
|
||||
{
|
||||
$aExtraParams = $this->aAjaxData['extra_params'];
|
||||
if(isset($aExtraParams['selection_enabled']) ){
|
||||
$aListDisabled = [];
|
||||
foreach( $aExtraParams['selection_enabled'] as $sKey=>$bValue){
|
||||
if ($bValue == false) {
|
||||
$aListDisabled[] = $sKey;
|
||||
}
|
||||
}
|
||||
return $aListDisabled;
|
||||
}
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user