mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Also keep working for previous tag names
This commit is contained in:
parent
f8a8a290ce
commit
10ad1ae7c4
@ -68,7 +68,7 @@ class Checkbox extends Etemplate\Widget
|
||||
// defaults for set and unset values
|
||||
$selected_value = true;
|
||||
$unselected_value = false;
|
||||
if(array_key_exists($value_attr, $this->attrs) || array_key_exists('unselectedValue', $this->attrs))
|
||||
if(array_key_exists($value_attr, $this->attrs) || array_key_exists('unselectedValue', $this->attrs) || array_key_exists('unselected_value', $this->attrs))
|
||||
{
|
||||
if(array_key_exists($value_attr, $this->attrs))
|
||||
{
|
||||
@ -130,4 +130,5 @@ class Checkbox extends Etemplate\Widget
|
||||
}
|
||||
}
|
||||
|
||||
Etemplate\Widget::registerWidget(__NAMESPACE__ . '\\Checkbox', array('et2-checkbox', 'et2-radio', 'et2-switch'));
|
||||
Etemplate\Widget::registerWidget(__NAMESPACE__ . '\\Checkbox', array('et2-checkbox', 'et2-radio', 'et2-switch',
|
||||
'checkbox', 'radio'));
|
@ -89,7 +89,7 @@ class Date extends Transformer
|
||||
*/
|
||||
public function set_row_value($cname, array $expand, array &$data)
|
||||
{
|
||||
if($this->type == 'et2-date-duration')
|
||||
if(in_array($this->type, ['et2-date-duration', 'date-duration']))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user