This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/generic/SugarWidgets/SugarWidgetSubPanelTopButton.php');
class SugarWidgetSubPanelTaskCustomButton extends SugarWidgetSubPanelTopButton
{
function display($defines, $additionalFormFields = null)
{
$button = "<form method='get' action='index.php'>";
$button .= "<input type='hidden' name='module' value='Tasks'/>";
$button .= "<input type='hidden' name='action' value='EditView'/>";
$button .= "<input type='hidden' name='first_parent_id' value='".$_REQUEST['record']."'/>";
$button .= "<input type='hidden' name='first_parent_type' value='".$_REQUEST['module']."'/>";
$button .= "<input class='button' type='submit' name='cstm_create' value='Utwórz' />\n</form>";
return $button;
}
}
?>