Copy time value

Ask your questions here.
Post Reply
karahan
Posts: 252
Joined: 09 Jul 2021, 22:14
Name: Edin Karajić
Location: Bosnia and Herzegovina
Company Name: KARAHAN d.o.o.
Contact:

Copy time value

Post by karahan »

Greetings...

I need to copy time value (hh:mm) from one entity to another.
I also want to do this by "entity drop-down ajax" type of relation, as it should allow values to be edited, if needed.

For some reasons the value is not copied...fields in both entities are of the same type (time field).

Any suggestions?
Time1.png
Time1.png (8.96 KiB) Viewed 340 times
Time2.png
Time2.png (8.98 KiB) Viewed 340 times
karahan
Posts: 252
Joined: 09 Jul 2021, 22:14
Name: Edin Karajić
Location: Bosnia and Herzegovina
Company Name: KARAHAN d.o.o.
Contact:

Re: Copy time value

Post by karahan »

Dear Sergey,

can you please check this issue as I it would be really needed for me?

Thanks,
Edin
User avatar
support
Site Admin
Posts: 6301
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Copy time value

Post by support »

Found this issue. File from archive replace to modules\dashboard\actions\
Let me know if it works ok now.
Attachments
select2_json.zip
(3.47 KiB) Downloaded 34 times
karahan
Posts: 252
Joined: 09 Jul 2021, 22:14
Name: Edin Karajić
Location: Bosnia and Herzegovina
Company Name: KARAHAN d.o.o.
Contact:

Re: Copy time value

Post by karahan »

Dear Sergey,

thank you for quick reply.

The values are now copied to time fields.
Pic1.png
Pic1.png (11.47 KiB) Viewed 292 times
Strange though, if I just save entry no values are stored in database.
But if I manually "overwrite" values then it is stored in database...
Pic2.png
This is only for "time" values, as other values are correctly stored in database...this below is from database itself...
Pic3.png
Please check..
User avatar
support
Site Admin
Posts: 6301
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Copy time value

Post by support »

My mistake. Fixed. Load attached file again.
Let me know.
Attachments
select2_json_fix2.zip
(3.46 KiB) Downloaded 37 times
karahan
Posts: 252
Joined: 09 Jul 2021, 22:14
Name: Edin Karajić
Location: Bosnia and Herzegovina
Company Name: KARAHAN d.o.o.
Contact:

Re: Copy time value

Post by karahan »

Yes, it works now!
Thank you very much.
User avatar
support
Site Admin
Posts: 6301
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Copy time value

Post by support »

Good. This change will be include in 3.0
Post Reply