mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
30 lines
777 B
PHP
30 lines
777 B
PHP
<?php
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
|
|
/* crmv@150024 */
|
|
|
|
$targetid = intval($_REQUEST['targetid']);
|
|
$action = $_REQUEST['subaction'];
|
|
|
|
if ($action = 'delfilter') {
|
|
|
|
$type = $_REQUEST['type'];
|
|
$objectid = intval($_REQUEST['objectid']);
|
|
$formod = $_REQUEST['formodule'];
|
|
|
|
$focus = CRMEntity::getInstance('Targets');
|
|
$focus->id = $targetid;
|
|
|
|
if ($type == 'CustomView') {
|
|
$focus->unsetDynamicCV($targetid, $objectid, $formod);
|
|
} elseif ($type == 'Report') {
|
|
$focus->unsetDynamicReport($targetid, $objectid, $formod);
|
|
}
|
|
|
|
// ok, now reload the div!
|
|
$html = $focus->getExtraDetailBlock();
|
|
echo $html;
|
|
} |