1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Partial Fix for Issue #4959 - TODO: unchecked checkboxes are not posted. ie. not saved/updated.

This commit is contained in:
Cameron
2023-03-18 12:31:23 -07:00
parent 4bad7825df
commit 5d18df638a
3 changed files with 68 additions and 47 deletions

View File

@@ -275,6 +275,7 @@ class e_menu
$model->setFieldIdName("menu_id");
$model->setDataFields(array('menu_parms'=>'json'));
$model->load($id, true);
$d = $model->get('menu_parms');
@@ -289,12 +290,15 @@ class e_menu
}
else
{
$lang = key($value);
$val = $value[$lang];
$model->setPostedData('menu_parms/'.$key.'/'.$lang, $val);
foreach($value as $lang => $val)
{
$model->setPostedData('menu_parms/'.$key.'/'.$lang, $val);
}
}
}
// file_put_contents(e_LOG."menuParmsAjax.log", print_r($parms,true));
return $model->save();