Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

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

Backend publish (unpublish) from list - modified date doesn't change 1 month 4 days ago #26296

  • iberan
  • iberan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
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.

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

Last edit: by iberan.

Backend publish (unpublish) from list - modified date doesn't change 1 month 3 days 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?
(won't respond to PM)
==================================================================
running: JEM 3.x (custom version) + Joomla 3.9.1.0 + PHP 5.x
Locally: PHP 7.3.5 + Joomla 4.0.0-alpha10 + pre-alpha JEM4.x (custom)

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

Last edit: by Bluefox.

Backend publish (unpublish) from list - modified date doesn't change 1 month 3 days ago #26299

  • iberan
  • iberan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
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.

Backend publish (unpublish) from list - modified date doesn't change 1 month 3 days ago #26301

  • iberan
  • iberan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
I propose to solve it in /plugins/jem/mailer/mailer.php

change at #608 and #629
$modified = JHtml::Date($event->modified, JText::_('DATE_FORMAT_LC2'));
to
$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
$modified = JHtml::Date($venue->modified, JText::_('DATE_FORMAT_LC2'));
to
$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.

Backend publish (unpublish) from list - modified date doesn't change 1 month 3 days 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.
(won't respond to PM)
==================================================================
running: JEM 3.x (custom version) + Joomla 3.9.1.0 + PHP 5.x
Locally: PHP 7.3.5 + Joomla 4.0.0-alpha10 + pre-alpha JEM4.x (custom)
The following user(s) said Thank You: iberan

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

Backend publish (unpublish) from list - modified date doesn't change 1 month 3 days ago #26311

  • iberan
  • iberan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Thanks for JEM & Viva la Open Source...

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

Last edit: by iberan.
  • Page:
  • 1
  • 2
Time to create page: 0.219 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.