Commits

joshjcarrier  committed 5ee85be

Bug fix: allow save success message to appear instead of overridden by general input warning.

  • Participants
  • Parent commits f63b5b1

Comments (0)

Files changed (1)

File admin/application/controllers/hgrepo.php

 		
 		$ofl_lock_hgrc  = $this->session->flashdata('ofl_hgrc_' . $repositoryName);
 		$valid = true;
+		$save_status = TRUE; // a value that isn't HGPHP_OK or an error code
 		$form_action = $this->input->post('form_action');
 		$hgrc_form = array();
 		if($form_action != FALSE)
 			}
 		}
 		
-		// just a reminder
-		if($valid)
+		// just a reminder, only when we're not pushing a successful save message
+		if($valid && ($save_status != HGPHP_OK))
 		{
 			$this->template->inject_partial('user_msg', lang('hgphp_msg_hgrc_save_err_validation').'-_:/`@#%* +]\\\',.');
 			$hgrc_form = array();