Page 1 of 1

Keep custom changes after updating version

Posted: 08 May 2018, 11:16
by rienkwind
Hello,

I've made some custom changes to Mantis in different files. The problem I have is that when I update to a new version, the custom changes get overridden. So is there a easy way to keep the custom changes and safely go to the newest version?

Re: Keep custom changes after updating version

Posted: 12 May 2018, 17:35
by atrol
Most of the time there is no need to change any of the existing Mantis files for customization, as quite a lot of customization can be done by setting configuration options, writing custom functions are writing plugins.

I recommend to use a source code control system like Git if you really need to change existing Mantis source code.
It's quite easy with Git to maintain your own code in a separate branch and to refresh your code from time to time with latest changes from Mantis.

Re: Keep custom changes after updating version

Posted: 18 May 2018, 16:45
by jsonr
I used to have quite a few local changes which I tracked with a local git branch that I merged releases into. But after dealing with some merge conflicts during the 2.x series, I moved a lot of the changes I had into plugins, leaving just my config, extra css and some changes to strings in the translation files.