diff options
author | Saketh1499 | 2021-10-06 20:24:21 +0530 |
---|---|---|
committer | Saketh1499 | 2021-10-06 20:24:21 +0530 |
commit | 7ca1633a11d29c62a0292750222c57bf68541879 (patch) | |
tree | 5abcc1f49daba832e80d5108e313d325f300f5d8 /testimonials_edit.inc | |
parent | d03ca8229c45797935ac5c066857be198471d276 (diff) | |
download | fellowship_testimonials-7ca1633a11d29c62a0292750222c57bf68541879.tar.gz fellowship_testimonials-7ca1633a11d29c62a0292750222c57bf68541879.tar.bz2 fellowship_testimonials-7ca1633a11d29c62a0292750222c57bf68541879.zip |
Updating testimonial edit form
Diffstat (limited to 'testimonials_edit.inc')
-rw-r--r-- | testimonials_edit.inc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/testimonials_edit.inc b/testimonials_edit.inc index e1af9ef..5e1f058 100644 --- a/testimonials_edit.inc +++ b/testimonials_edit.inc @@ -302,20 +302,19 @@ function fellowship_testimonials_edit_form_submit($form, &$form_state) { 'place' => $v['fellows_fieldset'][$i]['place'] )); $query->condition('f_id', $v['fellows_fieldset'][$i]['f_id']); - $result = $query -> execute(); - if ($result != 0) { + $fellowresult = $query -> execute(); + if ($fellowresult != 0) { $fellowsupload++; } } } } - /* if(!$result) { + if((!$result) && (!$fellowresult)) { drupal_set_message("Something went wrong, please try again.", "error"); } else { drupal_set_message("Internship Experiences updated successfully", "status"); - }*/ - drupal_set_message("Internship Experiences updated successfully", "status"); + } drupal_goto('internship-experiences/edit'); } |