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?
Copy time value
-
- 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
Dear Sergey,
can you please check this issue as I it would be really needed for me?
Thanks,
Edin
can you please check this issue as I it would be really needed for me?
Thanks,
Edin
- support
- Site Admin
- Posts: 6301
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Copy time value
Found this issue. File from archive replace to modules\dashboard\actions\
Let me know if it works ok now.
Let me know if it works ok now.
- Attachments
-
- select2_json.zip
- (3.47 KiB) Downloaded 34 times
-
- 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
Dear Sergey,
thank you for quick reply.
The values are now copied to time fields. 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... This is only for "time" values, as other values are correctly stored in database...this below is from database itself... Please check..
thank you for quick reply.
The values are now copied to time fields. 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... This is only for "time" values, as other values are correctly stored in database...this below is from database itself... Please check..
- support
- Site Admin
- Posts: 6301
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Copy time value
My mistake. Fixed. Load attached file again.
Let me know.
Let me know.
- Attachments
-
- select2_json_fix2.zip
- (3.46 KiB) Downloaded 37 times
-
- 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
Yes, it works now!
Thank you very much.
Thank you very much.
- support
- Site Admin
- Posts: 6301
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Copy time value
Good. This change will be include in 3.0