diff --git a/trunk/conf/LSobjects/config.LSobjects.LSeepeople.php b/trunk/conf/LSobjects/config.LSobjects.LSeepeople.php index 1ecf9c48..650a87db 100644 --- a/trunk/conf/LSobjects/config.LSobjects.LSeepeople.php +++ b/trunk/conf/LSobjects/config.LSobjects.LSeepeople.php @@ -165,7 +165,8 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( 'html_type' => 'text', 'html_options' => array( 'generate_value_format' => '%{givenName} %{sn}', - 'autoGenerateOnModify' => true // default : false + 'autoGenerateOnModify' => true, // default : false + 'autoGenerateOnCreate' => true // default : false ), 'required' => 1, 'validation' => 'valid', diff --git a/trunk/includes/js/LSformElement_text_field.js b/trunk/includes/js/LSformElement_text_field.js index 7f953082..27a5b020 100644 --- a/trunk/includes/js/LSformElement_text_field.js +++ b/trunk/includes/js/LSformElement_text_field.js @@ -29,7 +29,7 @@ var LSformElement_text_field = new Class({ if (this.params.autoGenerateOnModify) { force = 1; } - if ((this.input.value=='')||(force)) { + if (((this.input.value=='')&&(this.params.autoGenerateOnCreate))||(force)) { this.dependsFields = this.parent.getDependsFields(this.format); this.dependsFields.each(function(el) { var input = this.parent.getInput.bind(this.parent)(el);