Skip to content

Commit

Permalink
Additional commit for CFM-104
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed May 24, 2025
1 parent 2299e55 commit a2f15b4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/plugins/CoreServer/templates/MatchServerAttributes/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@

function jsLocalOnLoad() {
updateGadgets(true);

// On page load, set the appropriate widget to the current type (if set)
var curattr = "<?= \Cake\Utility\Inflector::Singularize(\Cake\Utility\Inflector::dasherize($vv_obj->attribute ?? '')) ?>";
var curtype = "<?= $vv_obj->type_id ?? ''?>";

if(curattr != "") {
curattr = curattr + "-type-id";

document.getElementById(curattr).value = curtype;
}
}
</script>
<?php
Expand Down

0 comments on commit a2f15b4

Please sign in to comment.