News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Can not edit "Modified Date" in Downloads items

Started by mhehm, 24.01.2025 11:59:18

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

mhehm

I need to can edit "Modified Date" in Downloads items
for this we need remove readonly="true" tag from "modified" field in administrator/components/com_jdownloads/forms/download.xml file and remove $this->modified = $date; from line 1420 in file "administrator/components/com_jdownloads/src/Table/DownloadTable.php"
  •  

ColinM

Hi
Think your instructions of what to change are not clear enough to see what to do
Could you please detail again - but maybe sending me a PM would be better scheme
Colin
Colin M
  •  

mhehm

I need to change modified date for downloads items when i update a download. but when i edit a download, "modified date" field is readonly. i removed it's readonly parameter from form.xml to can edit it when i edit a download from backend. but when i set a cuustom date for modifed date, it now save. then i checked and find out that i need to remove line 1420 in file "administrator/components/com_jdownloads/src/Table/DownloadTable.php"
  •  

ColinM

Hi
If you make a change to a Download using jD then jD changes the modified date and time.
So I am confused as why it is not happenning on your site
Please advise which version of Joomla and jD you are using - and also which PHP version.
Colin
Colin M
  •  

mhehm

Yes. When we edit, the edit date is the current time. I want to select another time as the edit date. For example, I want to select the next 2 days as the edit time.
  •  

ColinM

Hi
That seems to me a strange thing to do.  In my view that destroys the integrity of the Modified Date and Time.
ButI will ask Arno to consider
Colin
Colin M
  •