help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Backend publish (unpublish) from list - modified date doesn't change

Backend publish (unpublish) from list - modified date doesn't change

5 years 9 months ago - 5 years 9 months ago
#26296
Hi,

When admins or users edit Event or Venue form (backend or frontend), the modified date changes as well.

But when in backend admins publish (or unpublish) an item from list (Events or Venues) by its Status link, than the modified date doesn't change.

JEM version: 2.2.3

Joomla: 3.9.10

Any help is greatly appreciated.
Last edit: 5 years 9 months ago by iberan.

Please Log in or Create an account to join the conversation.

Re: Backend publish (unpublish) from list - modified date doesn't change

5 years 9 months ago - 5 years 9 months ago
#26297
Hi Iberan,

Am wondering what you meant, but it looks to me that that would be ok. When editing you are basicly modifying the venue or event, even when you didn't change anything and pressed the save button. With publishing you ar not modifying the content but are changing the state so it would be correct that the modified date of an event/venue is not changed.

Question: what do you like to achieve?
Last edit: 5 years 9 months ago by Bluefox.

Please Log in or Create an account to join the conversation.

Re: Backend publish (unpublish) from list - modified date doesn't change

5 years 9 months ago
#26299
Hi Bluefox,

Thanks for your quick response.
This issue is a bit inconvenience only, for example whith publishing from list a newly created item, the mail contains fail date:
"Modified at: Monday, 30 November -0001 01:16"

Please Log in or Create an account to join the conversation.

Re: Backend publish (unpublish) from list - modified date doesn't change

5 years 9 months ago
#26301
I propose to solve it in /plugins/jem/mailer/mailer.php

change at #608 and #629
Code:
$modified = JHtml::Date($event->modified, JText::_('DATE_FORMAT_LC2'));
to
Code:
$modified = $event->modified > 0 ? JHtml::Date($event->modified, JText::_('DATE_FORMAT_LC2')) : JHtml::Date('now', JText::_('DATE_FORMAT_LC2'));

and change at #722 and #746
Code:
$modified = JHtml::Date($venue->modified, JText::_('DATE_FORMAT_LC2'));
to
Code:
$modified = $venue->modified > 0 ? JHtml::Date($venue->modified, JText::_('DATE_FORMAT_LC2')) : JHtml::Date('now', JText::_('DATE_FORMAT_LC2'));

Please Log in or Create an account to join the conversation.

Re: Backend publish (unpublish) from list - modified date doesn't change

5 years 9 months ago
#26309
iberan wrote: Hi Bluefox,

Thanks for your quick response.
This issue is a bit inconvenience only, for example whith publishing from list a newly created item, the mail contains fail date:
"Modified at: Monday, 30 November -0001 01:16"


oh, didn't think about the mail-thing but if that's trowing the wrong date/time + text then a dev should take a look at it. hmm, will check what it does with JEM2.2.3 (locally), just to see if it can be replicated and if so add it to Github as an issue.

Good you addressed the issue and also posted a fix for it.
The following user(s) said Thank You: iberan

Please Log in or Create an account to join the conversation.

Re: Backend publish (unpublish) from list - modified date doesn't change

5 years 9 months ago - 5 years 9 months ago
#26311
Thanks for JEM & Viva la Open Source...
Last edit: 5 years 9 months ago by iberan.

Please Log in or Create an account to join the conversation.

Time to create page: 0.400 seconds