Re: [Tiki-devel] Tracker execution
Victor Emanouilov via TikiWiki-devel <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Eutyche, handleSave is a special tracker field method that is called when saving a tracker item which is done in trackerlib->replace_item. Major tracker item save operations go through that method to save the item. There are small exceptions when things are updated directly in database but these should really be used with caution. Use a debugger to step through the code when saving a tracker item - it will be easier to understand. Also, turn on 'legacy insert screen' option for trackers which will allow you to see any output of var_dumps and other debugging code when saving the item (otherwise you get redirected from the modal and don't see any output). HTH, Victor On 9/26/22 3:52 PM, Eutyche ODIMBA KOSHE wrote: > I suppose that the tracker in their way of execution follows the same > procedure. already that all the fields inherit from the same class and > implement almost all the same methods like renderInput or > renderoutput. the functioning is therefore the same. I'm trying to > understand when the handleSave() method is executed. under what > condition? Why am I saying this? I'm on a task to better manage the > deletion of files in tiki. I can see that it is in this method for > example that the links are broken. It's in this method that we take > the old data we delete and the new ones are kept. Then I modify one to > have to delete definitively some files but nothing happens. i do a > little var_dump() inside to make sure it executes but nothing is > displayed. Then I delete the body of the method so that it fails to > delete or add new data but it still works fine. So I understand that > I'm going the wrong way. Can I have more details about this ? > > > > > _______________________________________________ > TikiWiki-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel