Skip to content

Commit

Permalink
Fix unable to update picker field
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Nov 18, 2024
1 parent fdd6deb commit c696bf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/plugins/CoreEnroller/templates/element/spa-field.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* COmanage Registry Single Paget Application Field
* COmanage Registry Single Page Application Field
*
* Portions licensed to the University Corporation for Advanced Internet
* Development, Inc. ("UCAID") under one or more contributor license agreements.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,9 @@ export default {
this.options.inputProps.dataPersonid = this.person.value
} else if(this.options.type == 'field') {
// The picker is part of a standard form field
const field = document.getElementById(this.options.fieldName);
this.options.inputProps.dataPersonid = this.person.value
this.options.inputProps.value = `${this.person.label} (ID: ${this.person.value})`
field.value = `${this.person.label} (ID: ${this.person.value})`
} else {
// The picker is stand-alone, and should render the configured page in a modal on @item-select
const urlForModal = this.options.actionUrl + '&person_id=' + this.person.value;
Expand Down

0 comments on commit c696bf4

Please sign in to comment.