mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 16:59:36 +01:00
"allow cancel buttons (no validation) to be named eg. button[cancel], instead only cancel"
This commit is contained in:
parent
3bbc80948f
commit
d623adab6a
@ -86,6 +86,12 @@
|
|||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
var $name_vars='exec';
|
var $name_vars='exec';
|
||||||
|
/**
|
||||||
|
* Are we running as sitemgr module or not
|
||||||
|
*
|
||||||
|
* @var boolean
|
||||||
|
*/
|
||||||
|
var $sitemgr=false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* constructor of etemplate class, reads an eTemplate if $name is given
|
* constructor of etemplate class, reads an eTemplate if $name is given
|
||||||
@ -1267,7 +1273,7 @@ foreach($sess as $key => $val)
|
|||||||
if (!$readonly && $type != 'buttononly') // input button, are never submitted back!
|
if (!$readonly && $type != 'buttononly') // input button, are never submitted back!
|
||||||
{
|
{
|
||||||
$GLOBALS['egw_info']['etemplate']['to_process'][$form_name] = $cell['type'];
|
$GLOBALS['egw_info']['etemplate']['to_process'][$form_name] = $cell['type'];
|
||||||
if (strtolower($name) == 'cancel')
|
if ($name == 'cancel' || stripos($name,'[cancel]') !== false)
|
||||||
{
|
{
|
||||||
$GLOBALS['egw_info']['etemplate']['to_process'][$form_name] = 'cancel';
|
$GLOBALS['egw_info']['etemplate']['to_process'][$form_name] = 'cancel';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user