<commit_before><?php
$app = MapasCulturais\App::i();
$definitions = MapasCulturais\Entities\Agent::getPropertiesMetadata();
$agent_fields = $app->modules['RegistrationFieldTypes']->config['availableAgentFields'];

$fields_options = [];

foreach ($agent_fields as $field) {
    if (isset($definitions[$field])) {
        $def = $definitions[$field];
        $fields_options[$field] = $def['label'] ?: $field;
    } else {
        $fields_options[$field] = $field;
    }
}
?>
<div ng-if="field.fieldType === 'agent-owner-field'">
    <select ng-model="field.agentField">
        <?php foreach ($fields_options as $key => $label) : ?>
            <option value="<?= $key ?>"><?= $label ?><option>
            <?php endforeach; ?>
    </select>
</div><commit_msg>corrige template registration-field-types/agent-owner-field-config.php [refs: #1467]<commit_after><?php
$app = MapasCulturais\App::i();
$definitions = MapasCulturais\Entities\Agent::getPropertiesMetadata();
$agent_fields = $app->modules['RegistrationFieldTypes']->config['availableAgentFields'];

$fields_options = [];

foreach ($agent_fields as $field) {
    if (isset($definitions[$field])) {
        $def = $definitions[$field];
        $fields_options[$field] = $def['label'] ?: $field;
    } else {
        $fields_options[$field] = $field;
    }
}
?>
<div ng-if="field.fieldType === 'agent-owner-field'">
    <select ng-model="field.agentField">
        <?php foreach ($fields_options as $key => $label) : ?>
            <option value="<?= $key ?>"><?= $label ?></option>
        <?php endforeach; ?>
    </select>
</div>
{'fraction_non_alphanumeric': 0.201765447667087, 'fraction_numerical': 0.0025220680958385876, 'mean_word_length': 4.006309148264984, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3529850', 'n_tokens_mistral': 502, 'n_tokens_neox': 508, 'n_words': 87}