Skip to content
Snippets Groups Projects
Commit d2ba2e0c authored by Uma's avatar Uma
Browse files

Fixes #1225 Custom block deletion with no fields

parent 540a1117
No related branches found
No related tags found
No related merge requests found
......@@ -80,8 +80,8 @@ class Settings_LayoutEditor_Block_Action extends Settings_Vtiger_Index_Action {
$response = new Vtiger_Response();
$blockId = $request->get('blockid');
$checkIfFieldsExists = Vtiger_Block_Model::checkFieldsExists($blockId);
if(!$checkIfFieldsExists) {
$response->setError('502','Fields not exists for the block');
if($checkIfFieldsExists) {
$response->setError('502','Fields exists for the block');
$response->emit();
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment