summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaketh14992022-01-03 22:22:26 +0530
committerSaketh14992022-01-03 22:22:26 +0530
commit58642fd345d6143c2867836e1b12b91bbe3cc60e (patch)
treee9b2e5cdef1e9c0272629f273c5dd548e1772669
parent53ce71ad7e2f0226c71993f28e2ebeab1a90d510 (diff)
downloadcfd_case_study-58642fd345d6143c2867836e1b12b91bbe3cc60e.tar.gz
cfd_case_study-58642fd345d6143c2867836e1b12b91bbe3cc60e.tar.bz2
cfd_case_study-58642fd345d6143c2867836e1b12b91bbe3cc60e.zip
Updating solvers in edit form
-rwxr-xr-xmanage_proposal.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/manage_proposal.inc b/manage_proposal.inc
index 3564c75..683d071 100755
--- a/manage_proposal.inc
+++ b/manage_proposal.inc
@@ -1006,7 +1006,7 @@ function cfd_case_study_proposal_edit_form($form, &$form_state)
$form['solver_used'] = array(
'#type' => 'select',
'#title' => t('Select the Solver to be used'),
- '#options' => _cs_list_of_solvers($version_id, $simulation_id),
+ '#options' => _cs_list_of_solvers($simulation_id),
'#prefix' => '<div id="ajax-solver-replace">',
'#suffix' => '</div>',
'#states' => array(
@@ -1069,7 +1069,7 @@ function cfd_case_study_proposal_edit_form($form, &$form_state)
function ajax_solver_used_callback($form, $form_state){
$simulation_id = isset($form_state['values']['simulation_type']) ? $form_state['values']['simulation_type'] : key($simulation_type_options);
if($simulation_id < 19){
- $form['solver_used']['#options'] = _cs_list_of_solvers($version_id, $simulation_id);
+ $form['solver_used']['#options'] = _cs_list_of_solvers($simulation_id);
$form['solver_used']['#required'] = TRUE;
$form['solver_used']['#validated'] = TRUE;
$commands[] = ajax_command_replace('#ajax-solver-replace', drupal_render($form['solver_used']));