CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#11561] value 0 (zero) not saved in text input fields

avatar
Created By: (cyrcle)
Date Submitted: Fri Sep 08 06:06:10 -0400 2017

Assigned To:
Version: 2.2.3.1
CMSMS Version: 2.2.3.1
Severity: Minor
Resolution: Invalid
State: Closed
Summary:
value 0 (zero) not saved in text input fields
Detailed Description:
As mentioned in this thread
https://forum.cmsmadesimple.org/viewtopic.php?f=7&t=74366

It's not possible to store the value 0 (zero) in text input fields.
In my case, i've got is a "score" field as custom fields in CGCalendar and it's
not possible to store the value 0 (zero).
The frontend and the admin doesn't display 0 but blank.
I don't want display "0" as default, I prefer to display "-" until the result
has been entered by an admin.
A workaround is to tell the admin users to fill in "00" instead of "0" and I
could replace in templates "00" by "0" but it's not a great solution for
end-users.

Thanks for your attention. I love CMSMS and I want it to be the best CMS.


History

Comments
avatar
Date: 2017-09-08 12:54
Posted By: Robert Campbell (calguy1000)

So is this a core issue or a CGCalendar issue?

      
avatar
Date: 2017-09-08 13:19
Posted By:  (cyrcle)

I thought that custom fields were a core feature used by modules such as
CGCalendar or LISE. If not, then that would be a CGCalendar issue. Sorry I don't
know.
      
avatar
Date: 2017-09-18 15:23
Posted By:  (cyrcle)

For custom fields in CGCalendar the value 0 (zero) is not stored in the
database, but the value 00 is stored in the database.
      
Updates

Updated: 2017-09-23 10:50
resolution_id: 10 => 9
state: Open => Closed

Updated: 2017-09-08 12:54
resolution_id: => 10