Menu

#38 image_map in menuman

Core Module
closed-out-of-date
Database (15)
5
2004-08-24
2004-07-13
CArOgNa
No

in the menuman module in the settings pannel of a menu
field "Image map" is unchecked by default.
If i check this all work fine, but when i uncheck this
checkbox the value in the db don't change!!
I have find the problem:
in the file mod/menuman/class/menu.php at the row 572
the module check if the variable exist with this code:

if(isset($_POST['MMN_image_map'])) {
$this->image_map = $_POST['MMN_image_map'];
}

but this is not complete, because if a checkbox is
unchecked the variable not assume a "negative" value
but simply the variable are not send. For this i have
change the code reported in:

if(isset($_POST['MMN_image_map'])) {
$this->image_map = $_POST['MMN_image_map'];
} else {
$this->image_map = 0;
}

Correct?

Sorry for my terrible english!
bye bye!
CArOgNa

Discussion

  • Steven Levin

    Steven Levin - 2004-08-18
    • assigned_to: stardog --> jydallstar
     
  • Steven Levin

    Steven Levin - 2004-08-24

    Logged In: YES
    user_id=225888

    This has already been fixed. Please upgrade you version of
    phpwebsite to 0.9.3-2 or greater.

    Steven

     
  • Steven Levin

    Steven Levin - 2004-08-24
    • status: open --> closed-out-of-date
     

Log in to post a comment.

MongoDB Logo MongoDB