Skip to content

Commit

Permalink
Merge branch 'release/1.4.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
David McReynolds committed Aug 19, 2020
2 parents e59872e + a17822a commit fa82c38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ fuel.controller.BaseFuelController = jqx.lib.BaseController.extend({

$modal.find('iframe#replace_iframe').bind('load', function(){
var iframeContext = this.contentDocument;
var replacedId = $('#new_fuel_replace_id', iframeContext).val();
var replacedId = parseInt($('#new_fuel_replace_id', iframeContext).val());

$('#form', iframeContext).submit(function(){
if (confirm(fuel.lang('replace_warning'))){
Expand Down
2 changes: 1 addition & 1 deletion fuel/modules/fuel/config/fuel_constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
// INSTALL_ROOT is defined in the index.php bootstrap file
define('FUEL_VERSION', '1.4.8');
define('FUEL_VERSION', '1.4.9');
if (!defined('MODULES_FOLDER'))
{
define('MODULES_FOLDER', '../../fuel/modules');
Expand Down
4 changes: 2 additions & 2 deletions fuel/modules/fuel/controllers/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,7 @@ function replace($id = NULL)
{
if ( ! empty($_POST['fuel_replace_id']))
{
$replace_id = $this->input->post('fuel_replace_id');
$replace_id = (int) $this->input->post('fuel_replace_id', true);
//$delete = is_true_val($this->input->post('fuel_delete_replacement'));
$delete = TRUE;
if (!$this->model->replace($replace_id, $id, $delete))
Expand Down Expand Up @@ -1833,7 +1833,7 @@ function replace($id = NULL)

if ($success)
{
$fields['new_fuel_replace_id'] = array('type' => 'hidden', 'value' => $replace_id);
$fields['new_fuel_replace_id'] = array('type' => 'hidden', 'value' => (int) $replace_id);
}

//$this->form_builder->use_form_tag = FALSE;
Expand Down

0 comments on commit fa82c38

Please sign in to comment.