init
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user