selected ads

FREE Reseller Hosting Program, Simple Business Model, Time-proven Network, FREE to Join!

Sunday, September 13, 2009

Oscommerce version 3 bug

Found bug on Oscommerce version 3.0 alpha 5 :-(

applications/templates/templates.php

case 'save':
$this->_page_contents = 'edit.php';

if ( isset($_POST['subaction']) && ($_POST['subaction'] == 'confirm') ) {
$data = array('configuration' => $_POST['configuration']);

if ( $this->_save($_GET['template'], $data, ( isset($_POST['default']) && ( $_POST['default'] == 'on' ) ? true : false )) ) {
$osC_MessageStack->add($this->_module, $osC_Language->get('ms_success_action_performed'), 'success');
} else {
$osC_MessageStack->add($this->_module, $osC_Language->get('ms_error_action_not_performed'), 'error');
}


I just changed it (I hope this will be solved soon) to:


case 'save':
$this->_page_contents = 'edit.php';
// var_dump ($_POST);

$data='';
if ( isset($_POST['subaction']) && ($_POST['subaction'] == 'confirm') ) {
if (isset($_POST['configuration'])) {
$data = array('configuration' => $_POST['configuration']);
}


Bug is already listed in http://svn.oscommerce.com/jira/browse/OSC-142.
The error is this when i set to default any template:

Notice: Undefined index: configuration in .../oscommerce/admin/includes/content/templates.php on line 45

1 comment:

  1. How to manage your customers in osCommerce and is there any other software to manage the traffic!
    Ecommerce Web Templates

    ReplyDelete