Fix missing entry values

This commit is contained in:
nathan 2023-04-24 13:27:57 -06:00
parent 2e3784ea54
commit d57bcd12ac
3 changed files with 13 additions and 14 deletions

View File

@ -90,7 +90,7 @@ export class et2_entry extends et2_valueWidget
// Often the ID conflicts, so check prefix
if(_attrs.id && _attrs.id.indexOf(et2_entry.prefix) < 0)
{
_attrs.id = et2_entry.prefix + _attrs.id;
this.id = _attrs.id = et2_entry.prefix + _attrs.id;
}
let value = _attrs.value;

View File

@ -68,26 +68,25 @@ class Contact extends Entry
'contact-fields' => array( // contact-fields widget
'sel_options' => array('__callback__' => 'get_contact_fields'),
'type' => 'select',
'no_lang' => true,
'options' => 'None',
'noLang' => true,
'emptyLabel' => 'None',
),
'contact-template' => array(
'type' => 'template',
'options' => '',
'template' => array('__callback__' => 'parse_template'),
),
'__default__' => array(
'options' => array(
'bday' => array('type' => 'date', 'options' => 'Y-m-d'),
'owner' => array('type' => 'select-account', 'options' => ''),
'modifier' => array('type' => 'select-account', 'options' => ''),
'creator' => array('type' => 'select-account', 'options' => ''),
'modifed' => array('type' => 'date-time', 'options' => ''),
'created' => array('type' => 'date-time', 'options' => ''),
'cat_id' => array('type' => 'select-cat', 'options' => ''),
'bday' => array('type' => 'date', 'options' => 'Y-m-d'),
'owner' => array('type' => 'select-account', 'options' => ''),
'modifier' => array('type' => 'select-account', 'options' => ''),
'creator' => array('type' => 'select-account', 'options' => ''),
'modifed' => array('type' => 'date-time', 'options' => ''),
'created' => array('type' => 'date-time', 'options' => ''),
'cat_id' => array('type' => 'select-cat', 'options' => ''),
'__default__' => array('type' => 'label', 'options' => ''),
),
'no_lang' => 1,
'noLang' => true,
),
),
);

View File

@ -49,8 +49,8 @@ abstract class Entry extends Transformer
'entry-fields' => array( // List of fields
'sel_options' => array('__callback__' => 'get_field_list'),
'type' => 'select',
'no_lang' => true,
'options' => 'None',
'noLang' => true,
'emptyLabel' => 'None',
),
)
);