42 Posts
IBeRKa
9 years ago
3
Topic

Ahoy!

Joomla 3.4.5, freshly installed

Seeblod 3.7.2, freshly installed

PHP 5.4

MySQL 5.5


This is more a feedback than a complaint or a question.

I found lot of posts everywhere about some people with their Seblod doesn't save changed values of their "calendar" field. In some cases it even deletes existing values by overwriting them with "0000-00-00 00:00:00". I experienced this problem today, too. And it wasn't the first time. 

But today I found out somethign interesting.


The problem comes up only if i have set "text input" to "enabled". If i switch this setting to "read-only" it saves my changes values without any problem.


I hope this helps anyone ... e.g. the developer team? ;)


Kind regards, Me


P.S.: oh, and thank you very much for this really wonderful component - the probably best extension for Joomla! ever!

Get a VIP membership
572 Posts
_jrmo
9 years ago
1
Level 1

Hi there,

the behavior you are talking about is normal, and expected. 

The formatting of the calendar field is usually set to datetime. If you set the input to text and don't enter anything, the null value of the submitted field is stored as a datetime-formatted null value: 0000-00-00 00:00:00. When you set it to readonly, it doesn't happen. 

So, you can either change the storage formatting in the database from datetime to something else, or leave the field as "readonly".

Cheers,

James

42 Posts
IBeRKa
9 years ago
0
Level 2

Ahoy, James!

Thanks for your reaction! Your answer would make sense, but ... I just tested it and it didn't work exactly like you said.

The yet working calendar field with "text input" set to "read-only" was able to save values to the database. Teh values are shown in the front end as well in back end when i edit the article.

I changed the setting for "text input" to "enabled", I opened the article in the backend and it showed the value as saved. So the text field for the date and time was NOT empty.
I clicked "save and close" without changing anything.

I reopened the article in the backend and the saved value is showed again, meaning the text field for datetime was again NOT empty.

I then opened the date picker and no matter if I picked the same date and time or another date or just another time on the same date: 

clicking "save and close" made the formerly saved value disappear and refuses to save any other value for this field.

Unless I change the "text input" setting back to "read-only".

Regards, Me

310 Posts
ricco
9 years ago
0
Level 1

Hi,

Thank you for this.

I've got a similar problem with the calendar field, and I think its related to this one.

Here is the problem:

I've a radio field with 2 options: Yes and NO. The question is: "Would you like to set up an Expiration Date of your posting, and the default selected value is NO.

Then I have the calendar field show (with conditional states - see the image bellow) if the user selects the Yes option.

So far so good, it works as expected, but...

If the user selects yes, then chooses a date, then changes his/hers mind and selects NO the calendar disappears BUT the selected date is not cleared and is stored on submit.

Hope to get this sorted.

Best regards,

ricco

The image is too small here in the forum, here is link to it:

https://drive.google.com/file/d/0B94jDt8p2n8GdW1TN1M2dXhOaHM/view?usp=sharing

Get a Book for SEBLOD