date value lost when editing express record

Permalink 3 0 Browser Info Environment
When you edit express record all fields are correctly prefilled with current value, but the value of the date field is lost.

What to do to duplicate the bug:
1. define express object with attribute
2. create a record
3. view this record (ie. url like example.com/dashboard/express/entries/view_entry/<id>)
4. press Edit button (opens url like example.com/dashboard/express/entries/edit_entry/<id>)

the date field is empty i.e. if you save the record even without doing any changes, the date is wiped out.

Expected outcome: the date should be prefilled by current value of at least when it is submited without changing it is should stay as it was before editing.


Status: New
Juerg replied on at Permalink Reply
I see the exact same thing. It limits the usefulness of Express objects for my customers quite a bit :-(.
Juerg replied on at Permalink Reply
I see the exact same thing. It limits the usefulness of Express objects for my customers quite a bit :-(.
admin810 replied on at Permalink Reply
I am getting the same thing. It only happens when I set the Date/Time Options to date only. Text or Both Date And Time seem to work fine.
admin810 replied on at Permalink Reply
Ok I think maybe this is going to be fixed in then next update. Seems to be related to this "bug"

https://github.com/concrete5/concrete5/pull/5034/commits/e1390ce42f5...

I applied the above change to my core files (I know that is not the correct way to do things but wanted to check) and the entered date started showing up.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.1.0
Version Installed - 8.1.0
Database Version - 20170123000000

# concrete5 Packages
None

# concrete5 Overrides
blocks/express_entry_detail/templates/prehled_zprav.php, blocks/express_entry_detail/templates, blocks/express_entry_detail, blocks/express_entry_list/templates/prehled_zprav.php, blocks/express_entry_list/templates, blocks/express_entry_list, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES/messages.mo.dist, languages/cs_CZ/LC_MESSAGES/messages.po, languages/cs_CZ/LC_MESSAGES/compile, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, themes/dt/work/mapa.psd, themes/dt/work, themes/dt/js/jquery.js, themes/dt/js/dt-specific.js, themes/dt/js, themes/dt/main.css, themes/dt/thumbnail.png, themes/dt/header.inc.php, themes/dt/description.txt, themes/dt/i/menu-pravidla.png, themes/dt/i/menu-vysledky.png, themes/dt/i/panel-bottom.gif, themes/dt/i/h-zpravy.png, themes/dt/i/logotype.gif, themes/dt/i/menu-prihlaska.png, themes/dt/i/mapa.2.png, themes/dt/i/hra_roku.gif, themes/dt/i/prihlasit_se.png, themes/dt/i/menu-kalendar.png, themes/dt/i/menu-kontakty.gif, themes/dt/i/menu-zpravy.png, themes/dt/i/background-tile.png, themes/dt/i/h-rss.png, themes/dt/i/panel-top.gif, themes/dt/i/menu-prihlaska.gif, themes/dt/i/menu-intranet.gif, themes/dt/i/mapa.png, themes/dt/i/menu-intranet.png, themes/dt/i/h-long.png, themes/dt/i/mapa.3a.png, themes/dt/i/menu-domu.gif, themes/dt/i/h-long.gif, themes/dt/i/favicon.png, themes/dt/i/panel-body.gif, themes/dt/i/panel-body.png, themes/dt/i/background.jpg, themes/dt/i/menu-pravidla.gif, themes/dt/i/menu-partneri.gif, themes/dt/i/logotype.png, themes/dt/i/menu-kontakty.png, themes/dt/i/panel-decoration.png, themes/dt/i/menu-vysledky.gif, themes/dt/i/menu-historie.png, themes/dt/i/panel-bottom.png, themes/dt/i/mapa-2011.png, themes/dt/i/menu-kalendar.gif, themes/dt/i/menu-fotogalerie.gif, themes/dt/i/menu-zpravy.gif, themes/dt/i/menu-historie.gif, themes/dt/i/external.png, themes/dt/i/panel-top.png, themes/dt/i/h-turnaje.png, themes/dt/i/menu-fotogalerie.png, themes/dt/i/menu-domu.png, themes/dt/i/hra_roku.png, themes/dt/i/menu-partneri.png, themes/dt/i/prihlasit_se.gif, themes/dt/i, themes/dt/default.php, themes/dt/view.php, themes/dt/print.css, themes/dt/page_with_news.php, themes/dt/footer.inc.php, themes/dt, themes/catan/main.scss, themes/catan/main.css, themes/catan/_fonts.scss, themes/catan/thumbnail.png, themes/catan/index.php.template, themes/catan/main.css.map, themes/catan/normal.php, themes/catan/description.txt, themes/catan/fonts/minionsemibold.woff2, themes/catan/fonts/minionitalic.otf, themes/catan/fonts/minionitalicbold.eot, themes/catan/fonts/minionsemibold.ttf, themes/catan/fonts/minionbold.woff2, themes/catan/fonts/minionboldcondensed.ttf, themes/catan/fonts/minionitalic.woff, themes/catan/fonts/minionbold.ttf, themes/catan/fonts/minionregular.eot, themes/catan/fonts/minionitalicbold.ttf, themes/catan/fonts/minionitalicbold.woff, themes/catan/fonts/minionboldcondensed.woff, themes/catan/fonts/minionitalic.woff2, themes/catan/fonts/minionsemibold.woff, themes/catan/fonts/minionboldcondensed.otf, themes/catan/fonts/minionitalicbold.woff2, themes/catan/fonts/minionitalic.ttf, themes/catan/fonts/minionregular.svg, themes/catan/fonts/minionbold.svg, themes/catan/fonts/minionitalicbold.svg, themes/catan/fonts/minionitalic.svg, themes/catan/fonts/minionbold.eot, themes/catan/fonts/minionregular.woff2, themes/catan/fonts/minionbold.otf, themes/catan/fonts/minionsemibold.svg, themes/catan/fonts/minionregular.otf, themes/catan/fonts/minionboldcondensed.woff2, themes/catan/fonts/minionitalic.eot, themes/catan/fonts/minionboldcondensed.eot, themes/catan/fonts/minionitalicbold.otf, themes/catan/fonts/minionbold.woff, themes/catan/fonts/minionsemibold.otf, themes/catan/fonts/minionboldcondensed.svg, themes/catan/fonts/minionregular.ttf, themes/catan/fonts/minionsemibold.eot, themes/catan/fonts/minionregular.woff, themes/catan/fonts, themes/catan/i/menu-pravidla.png, themes/catan/i/menu-vysledky.png, themes/catan/i/panel-bottom.gif, themes/catan/i/h-zpravy.png, themes/catan/i/logotype.gif, themes/catan/i/menu-prihlaska.png, themes/catan/i/hra_roku.gif, themes/catan/i/prihlasit_se.png, themes/catan/i/menu-kalendar.png, themes/catan/i/menu-kontakty.gif, themes/catan/i/menu-zpravy.png, themes/catan/i/background-tile.png, themes/catan/i/h-rss.png, themes/catan/i/panel-top.gif, themes/catan/i/menu-prihlaska.gif, themes/catan/i/menu-intranet.gif, themes/catan/i/mapa.png, themes/catan/i/menu-intranet.png, themes/catan/i/h-long.png, themes/catan/i/menu-domu.gif, themes/catan/i/h-long.gif, themes/catan/i/favicon.png, themes/catan/i/panel-body.gif, themes/catan/i/panel-body.png, themes/catan/i/background.jpg, themes/catan/i/menu-pravidla.gif, themes/catan/i/logotype.png, themes/catan/i/menu-kontakty.png, themes/catan/i/panel-decoration.png, themes/catan/i/menu-vysledky.gif, themes/catan/i/panel-bottom.png, themes/catan/i/mapa.bak.png, themes/catan/i/menu-kalendar.gif, themes/catan/i/menu-zpravy.gif, themes/catan/i/external.png, themes/catan/i/panel-top.png, themes/catan/i/h-turnaje.png, themes/catan/i/menu-domu.png, themes/catan/i/hra_roku.png, themes/catan/i/prihlasit_se.gif, themes/catan/i, themes/catan/elements/header.inc.php, themes/catan/elements/footer.inc.php, themes/catan/elements, themes/catan/gr-v2.psd, themes/catan/with_right_sidebar.php, themes/catan/images/mapka.png, themes/catan/images/mrizka-zluta-celek-siroka.png, themes/catan/images/mrizka-cervena-celek.png, themes/catan/images/panel-body-sidebar.png, themes/catan/images/mrizka-seda-celek.png, themes/catan/images/facebook-icon.png, themes/catan/images/panel-body.png, themes/catan/images/background.png, themes/catan/images/panel-bottom-sidebar.png, themes/catan/images/panel-bottom.png, themes/catan/images/minion-pro.ttf, themes/catan/images/mrizka-zluta-celek.png, themes/catan/images/panel-top-sidebar.png, themes/catan/images/logo-velke.png, themes/catan/images/panel-top.png, themes/catan/images/minion-pro-regular.otf, themes/catan/images, themes/catan, blocks/express_entry_detail/templates/prehled_zprav.php, blocks/express_entry_detail/templates, blocks/express_entry_detail, blocks/express_entry_list/templates/prehled_zprav.php, blocks/express_entry_list/templates, blocks/express_entry_list, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES/messages.mo.dist, languages/cs_CZ/LC_MESSAGES/messages.po, languages/cs_CZ/LC_MESSAGES/compile, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, themes/dt/work/mapa.psd, themes/dt/work, themes/dt/js/jquery.js, themes/dt/js/dt-specific.js, themes/dt/js, themes/dt/main.css, themes/dt/thumbnail.png, themes/dt/header.inc.php, themes/dt/description.txt, themes/dt/i/menu-pravidla.png, themes/dt/i/menu-vysledky.png, themes/dt/i/panel-bottom.gif, themes/dt/i/h-zpravy.png, themes/dt/i/logotype.gif, themes/dt/i/menu-prihlaska.png, themes/dt/i/mapa.2.png, themes/dt/i/hra_roku.gif, themes/dt/i/prihlasit_se.png, themes/dt/i/menu-kalendar.png, themes/dt/i/menu-kontakty.gif, themes/dt/i/menu-zpravy.png, themes/dt/i/background-tile.png, themes/dt/i/h-rss.png, themes/dt/i/panel-top.gif, themes/dt/i/menu-prihlaska.gif, themes/dt/i/menu-intranet.gif, themes/dt/i/mapa.png, themes/dt/i/menu-intranet.png, themes/dt/i/h-long.png, themes/dt/i/mapa.3a.png, themes/dt/i/menu-domu.gif, themes/dt/i/h-long.gif, themes/dt/i/favicon.png, themes/dt/i/panel-body.gif, themes/dt/i/panel-body.png, themes/dt/i/background.jpg, themes/dt/i/menu-pravidla.gif, themes/dt/i/menu-partneri.gif, themes/dt/i/logotype.png, themes/dt/i/menu-kontakty.png, themes/dt/i/panel-decoration.png, themes/dt/i/menu-vysledky.gif, themes/dt/i/menu-historie.png, themes/dt/i/panel-bottom.png, themes/dt/i/mapa-2011.png, themes/dt/i/menu-kalendar.gif, themes/dt/i/menu-fotogalerie.gif, themes/dt/i/menu-zpravy.gif, themes/dt/i/menu-historie.gif, themes/dt/i/external.png, themes/dt/i/panel-top.png, themes/dt/i/h-turnaje.png, themes/dt/i/menu-fotogalerie.png, themes/dt/i/menu-domu.png, themes/dt/i/hra_roku.png, themes/dt/i/menu-partneri.png, themes/dt/i/prihlasit_se.gif, themes/dt/i, themes/dt/default.php, themes/dt/view.php, themes/dt/print.css, themes/dt/page_with_news.php, themes/dt/footer.inc.php, themes/dt, themes/catan/main.scss, themes/catan/main.css, themes/catan/_fonts.scss, themes/catan/thumbnail.png, themes/catan/index.php.template, themes/catan/main.css.map, themes/catan/normal.php, themes/catan/description.txt, themes/catan/fonts/minionsemibold.woff2, themes/catan/fonts/minionitalic.otf, themes/catan/fonts/minionitalicbold.eot, themes/catan/fonts/minionsemibold.ttf, themes/catan/fonts/minionbold.woff2, themes/catan/fonts/minionboldcondensed.ttf, themes/catan/fonts/minionitalic.woff, themes/catan/fonts/minionbold.ttf, themes/catan/fonts/minionregular.eot, themes/catan/fonts/minionitalicbold.ttf, themes/catan/fonts/minionitalicbold.woff, themes/catan/fonts/minionboldcondensed.woff, themes/catan/fonts/minionitalic.woff2, themes/catan/fonts/minionsemibold.woff, themes/catan/fonts/minionboldcondensed.otf, themes/catan/fonts/minionitalicbold.woff2, themes/catan/fonts/minionitalic.ttf, themes/catan/fonts/minionregular.svg, themes/catan/fonts/minionbold.svg, themes/catan/fonts/minionitalicbold.svg, themes/catan/fonts/minionitalic.svg, themes/catan/fonts/minionbold.eot, themes/catan/fonts/minionregular.woff2, themes/catan/fonts/minionbold.otf, themes/catan/fonts/minionsemibold.svg, themes/catan/fonts/minionregular.otf, themes/catan/fonts/minionboldcondensed.woff2, themes/catan/fonts/minionitalic.eot, themes/catan/fonts/minionboldcondensed.eot, themes/catan/fonts/minionitalicbold.otf, themes/catan/fonts/minionbold.woff, themes/catan/fonts/minionsemibold.otf, themes/catan/fonts/minionboldcondensed.svg, themes/catan/fonts/minionregular.ttf, themes/catan/fonts/minionsemibold.eot, themes/catan/fonts/minionregular.woff, themes/catan/fonts, themes/catan/i/menu-pravidla.png, themes/catan/i/menu-vysledky.png, themes/catan/i/panel-bottom.gif, themes/catan/i/h-zpravy.png, themes/catan/i/logotype.gif, themes/catan/i/menu-prihlaska.png, themes/catan/i/hra_roku.gif, themes/catan/i/prihlasit_se.png, themes/catan/i/menu-kalendar.png, themes/catan/i/menu-kontakty.gif, themes/catan/i/menu-zpravy.png, themes/catan/i/background-tile.png, themes/catan/i/h-rss.png, themes/catan/i/panel-top.gif, themes/catan/i/menu-prihlaska.gif, themes/catan/i/menu-intranet.gif, themes/catan/i/mapa.png, themes/catan/i/menu-intranet.png, themes/catan/i/h-long.png, themes/catan/i/menu-domu.gif, themes/catan/i/h-long.gif, themes/catan/i/favicon.png, themes/catan/i/panel-body.gif, themes/catan/i/panel-body.png, themes/catan/i/background.jpg, themes/catan/i/menu-pravidla.gif, themes/catan/i/logotype.png, themes/catan/i/menu-kontakty.png, themes/catan/i/panel-decoration.png, themes/catan/i/menu-vysledky.gif, themes/catan/i/panel-bottom.png, themes/catan/i/mapa.bak.png, themes/catan/i/menu-kalendar.gif, themes/catan/i/menu-zpravy.gif, themes/catan/i/external.png, themes/catan/i/panel-top.png, themes/catan/i/h-turnaje.png, themes/catan/i/menu-domu.png, themes/catan/i/hra_roku.png, themes/catan/i/prihlasit_se.gif, themes/catan/i, themes/catan/elements/header.inc.php, themes/catan/elements/footer.inc.php, themes/catan/elements, themes/catan/gr-v2.psd, themes/catan/with_right_sidebar.php, themes/catan/images/mapka.png, themes/catan/images/mrizka-zluta-celek-siroka.png, themes/catan/images/mrizka-cervena-celek.png, themes/catan/images/panel-body-sidebar.png, themes/catan/images/mrizka-seda-celek.png, themes/catan/images/facebook-icon.png, themes/catan/images/panel-body.png, themes/catan/images/background.png, themes/catan/images/panel-bottom-sidebar.png, themes/catan/images/panel-bottom.png, themes/catan/images/minion-pro.ttf, themes/catan/images/mrizka-zluta-celek.png, themes/catan/images/panel-top-sidebar.png, themes/catan/images/logo-velke.png, themes/catan/images/panel-top.png, themes/catan/images/minion-pro-regular.otf, themes/catan/images, themes/catan

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
apache2handler

# PHP Version
5.6.29-0+deb8u1

# PHP Extensions
apache2handler, apc, apcu, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, ssh2, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 1000M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 1000M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0