Details
- 
        Type: Bug Bug
- 
        Status: Closed
- 
            Priority: Major Major
- 
            Resolution: Fixed
- 
            Affects Version/s: None
- 
            Fix Version/s: 5.5.0-b2
- 
            Component/s: None
- 
            Labels:None
Description
Overriding egg_id with a config option doesn't seem to work at all.
I'm not seeing fields being updated based on the selected option. It looks like the service fields load JS meant to re-fetch fields based on the egg selected but this JS doesn't seem to be functioning (see /pterodactyl/lib/pterodactyl_service.php in the getFields() method).
 
                
In pterodactyl.php addService() and editService() move
// Set configurable options $package = $this->getConfigurableOptions($vars, $package);Above
// Load egg $pterodactyl_egg = $this->apiRequest( 'Nests', 'eggsGet', ['nest_id' => $package->meta->nest_id, 'egg_id' => $package->meta->egg_id] );In /pterodactyl/lib/pterodactyl_service.php in the getFields() method change
'#configoption_$egg_id, #configoption_$nest_id, #configoption_$location_id',To
'*[name=\"configoptions[$egg_id]\"], *[name=\"configoptions[$nest_id]\"], *[name=\"configoptions[$location_id]\"]',