modules/Settings/QuickCreateEditor/actions/SaveSequenceNumber.php
<?php
/**
* Settings QuickCreateEditor SaveSequenceNumber action class.
*
* @copyright YetiForce S.A.
* @license YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
*/
class Settings_QuickCreateEditor_SaveSequenceNumber_Action extends Settings_Vtiger_Index_Action
{
public function __construct()
{
parent::__construct();
$this->exposeMethod('move');
}
/**
* Process.
*
* @param \App\Request $request
*/
public function move(App\Request $request)
{
$updatedFieldsList = $request->getArray('updatedFields', 'Integer');
$result = Settings_QuickCreateEditor_Module_Model::updateFieldSequenceNumber($updatedFieldsList);
$response = new Vtiger_Response();
$response->setResult(!empty($result));
$response->emit();
}
}