modules/Settings/FieldsDependency/models/ListView.php
<?php
/**
* Settings fields dependency list view model file.
*
* @package Settings.Model
*
* @copyright YetiForce S.A.
* @license YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
* @author Arkadiusz Sołek <a.solek@yetiforce.com>
* @author Radosław Skrzypczak <r.skrzypczak@yetiforce.com>
*/
/**
* Settings fields dependency list view model class.
*/
class Settings_FieldsDependency_ListView_Model extends Settings_Vtiger_ListView_Model
{
/** {@inheritdoc} */
public function getBasicListQuery(): App\Db\Query
{
$query = parent::getBasicListQuery();
if ($sourceModule = $this->get('sourceModule')) {
$query->where(['tabid' => $sourceModule]);
}
return $query;
}
}