News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

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 1 Guest 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
  •