Please help to understand what the problem is. I created a field Select to list in the comments to type of material field values I needed my, I redefined options list in the Custom Module
$query = db_select('node', 'n')
->fields('n', array('type', 'uid', 'title', 'nid'))
->condition('n.type', 'brigada_type', '=');
$result = $query->execute();
$brigade_list = array();
foreach($result as $value){
$brigade_list[$value->nid] = $value->title;
}
$form['field_select_brigade']['und']['#options'] = array(0 => t('- Select -')) + $brigade_list;
After I select a value from the list and create a comment I check it, and then only published but during the inspection the default value strays.
before
after