Jonathan Posted June 1, 2015 Report Posted June 1, 2015 Hey guys, Thought others might find this useful. I needed to have old configurable option values available in my POST requests from the universal module so after a bit of digging a pretty simple edit to app/models/services.php takes care of this nicely. Unfortunately it's a core edit, though hopefully this can make it into core officially *hint hint* // KNOWNHOST MOD RETURN OLD CONFIG OPTS foreach($service->options as $config_option){ if(isset($config_option->option_type) && $config_option->option_type == 'quantity'){ $vars['oldconfigoptions'][$config_option->option_name] = $config_option->qty; }else{ $vars['oldconfigoptions'][$config_option->option_name] = $config_option->option_value; } } // END KH MOD RETURN OLD CONFIG OPTS Insert this code around line ~1064 (right above $service_info = null;) of app/models/services.php I've only tested this a few times with different scenarios but it works perfectly in my environment. Enjoy PauloV, ariq01, Michael and 1 other 4
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now