Details
-
Type:
Bug
-
Status: Closed
-
Priority:
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).
Activity
| Field | Original Value | New Value |
|---|---|---|
| Rank | Ranked higher |
| Fix Version/s | 5.5.0-b2 [ 11733 ] | |
| Fix Version/s | 5.6.0-b1 [ 11730 ] |
| Sprint | 5.5.0-b2 Sprint 1 [ 161 ] |
| Sprint | 5.5.0-b1 Sprint 1 [ 161 ] | 5.5.0-b2 Sprint 1 [ 163 ] |
| Rank | Ranked lower |
| Assignee | Abdy Franco [ abdy ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Remaining Estimate | 0 minutes [ 0 ] | |
| Time Spent | 2 hours, 4 minutes [ 7440 ] | |
| Worklog Id | 15841 [ 15841 ] |
| Status | In Progress [ 3 ] | In Review [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Status | In Review [ 5 ] | Closed [ 6 ] |
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]\"]',