Jump to content

Add new category issue


cubehelper

Recommended Posts

Hello,

I tried to add a new category by entering a category name and description. I got the following error:

MySQL Error Occured

Error Message:

1366: Incorrect decimal value: '' for column 'per_ship' at row 1

There are no place to set the fields: per_ship, item_ship, item_int_ship and per_int_ship.

I modifed the admin/source/categories/index.inc.php to bypass this issue:

$record["per_ship"] = $db->mySQLSafe( !isset($_POST['per_ship']) ? 0.0 : $_POST['per_ship']);

$record["item_ship"] = $db->mySQLSafe( !isset($_POST['item_ship']) ? 0.0 : $_POST['item_ship']);

$record["item_int_ship"] = $db->mySQLSafe( !isset($_POST['item_int_ship']) ? 0.0 : $_POST['item_int_ship']);

$record["per_int_ship"] = $db->mySQLSafe( !isset($_POST['per_int_ship']) ? 0.0 : $_POST['per_int_ship']);

Please advise

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...