CMS MADE SIMPLE FORGE

News Module

 

[#6215] custom field definitions checkboxes get unchecked

avatar
Created By: adam shaw (admsh)
Date Submitted: Sun Mar 06 10:34:50 -0500 2011

Assigned To:
Version: None
CMSMS Version: None
Severity: Major
Resolution: Fixed
State: Closed
Summary:
custom field definitions checkboxes get unchecked
Detailed Description:
if there are checkboxes as field definitions, that are checked when a news item
is posted, those checkboxes get automatically unchecked when one goes in to edit
the news item.


History

Comments
avatar
Date: 2011-05-16 17:21
Posted By: Avi Liebowitz (jhlorax)

I am experiencing the same.

Items check do get the value of '1' written to the DB, but when an article is
opened it must not be seeing that and the box is unchecked; submitting without
re-checking will write a value of '0' to the DB . . .

CMS 1.9.4.1

News 2.11.2
      
avatar
Date: 2011-06-15 06:06
Posted By: Oliver Seddon (oliverseddon)

I am also experiencing the same error. Any idea on timescale for a resolution?

CMS 1.9.4.1
News 2.11.3
      
avatar
Date: 2011-06-15 06:27
Posted By: Oliver Seddon (oliverseddon)

I have resolved this issue by changing line 486 in action.editarticle.php from:

$obj->field =
$this->CreateInputHidden($id,$name,$value!='1'?$value:'0').$this->CreateInputCheckbox($id,$name,'1',$value!='1'?$value:'0');

to:

$obj->field =
$this->CreateInputHidden($id,$name,$value!='1'?$value:'0').$this->CreateInputCheckbox($id,$name,'1',$value!=''?$value:'0');


Now it remembers whether the checkbox is checked or not when editing or saving
articles.





Thanks
Oliver
      
avatar
Date: 2011-06-15 13:50
Posted By: Ronny Krijt (ronnyk)

Fixed with rev: 413 in SVN.
      
avatar
Date: 2011-10-22 14:03
Posted By: Ronny Krijt (ronnyk)

1.10 is released.
      
Updates

Updated: 2011-10-22 14:03
cmsms_version_id: => -1
state: Open => Closed

Updated: 2011-06-15 13:50
resolution_id: 6 => 7

Updated: 2011-03-16 14:39
resolution_id: => 6