sauruscms/Saurus-CMS-Community-Edition — Issue #50: Sections profile
Author: kempu
Created: 2012-03-01 09:57:44+00:00
State: open

When you add new section and select some custom profile for that, it won't save profile id.
To fix it, you must replace lines 778 - 785 in file admin/edit_rubriik.php with following:

$sql = $site->db->prepare("insert into obj_rubriik (objekt_id,on_peida_vmenyy, on_printlink, on_meilinglist, on_alamartiklid, profile_id) values (?,?,?,?,?,?)",
$objekt->objekt_id,
$objekt->all[on_peida_vmenyy],
$site->fdat[on_printlink] ? 1 : 0,
$site->fdat[on_meilinglist] ? 1 : 0,
$site->fdat[on_alamartiklid] ? 1 : 0,
$site->fdat['profile_id']
);