CMS MADE SIMPLE FORGE

CGBlog

 

[#12240] FEU Blog entry submission 2 issues with categories

avatar
Created By: Magal (magallo)
Date Submitted: Tue Jan 07 18:24:53 -0500 2020

Assigned To: Robert Campbell (calguy1000)
Version: 1.15.14
CMSMS Version: 2.2.12
Severity: Critical
Resolution: None
State: Open
Summary:
FEU Blog entry submission 2 issues with categories
Detailed Description:
1) Submission deletes existing categories and doesnt save new values.
action.fesubmit.php line148

if( isset($params['cgblog_category_id']) ) $category_id = (int)
$params['cgblog_category_id'];

should be

if( isset($params['cgblog_category_id']) ) $category_id =
$params['cgblog_category_id'];

(value should be an array not an integer.)

2) Blog Edit Form doesnt mark checked next to existing categories:
orig_fesubmit_template.tpl line 36

{if in_array($node.id,$sel_categories)}checked="checked"{/if} 
should be
{if in_array($node.id,$sel_categories[0])}checked="checked"{/if}

Regards



History