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 // Often the ID conflicts, so check prefix
if(_attrs.id && _attrs.id.indexOf(et2_entry.prefix) < 0) 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; let value = _attrs.value;

View File

@ -68,12 +68,11 @@ class Contact extends Entry
'contact-fields' => array( // contact-fields widget 'contact-fields' => array( // contact-fields widget
'sel_options' => array('__callback__' => 'get_contact_fields'), 'sel_options' => array('__callback__' => 'get_contact_fields'),
'type' => 'select', 'type' => 'select',
'no_lang' => true, 'noLang' => true,
'options' => 'None', 'emptyLabel' => 'None',
), ),
'contact-template' => array( 'contact-template' => array(
'type' => 'template', 'type' => 'template',
'options' => '',
'template' => array('__callback__' => 'parse_template'), 'template' => array('__callback__' => 'parse_template'),
), ),
'__default__' => array( '__default__' => array(
@ -87,7 +86,7 @@ class Contact extends Entry
'cat_id' => array('type' => 'select-cat', 'options' => ''), 'cat_id' => array('type' => 'select-cat', 'options' => ''),
'__default__' => array('type' => 'label', '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 'entry-fields' => array( // List of fields
'sel_options' => array('__callback__' => 'get_field_list'), 'sel_options' => array('__callback__' => 'get_field_list'),
'type' => 'select', 'type' => 'select',
'no_lang' => true, 'noLang' => true,
'options' => 'None', 'emptyLabel' => 'None',
), ),
) )
); );