Page 1 of 1

custom fields lost after upgrade

Posted: Thu Jan 24, 2013 6:29 pm
by plc
Hi.

I just upgraded to 2.4.2 and seem to have lost my custom fields. Could someone tell me what file that lives in so I can restore them from backup please?

Re: custom fields lost after upgrade

Posted: Thu Jan 24, 2013 6:58 pm
by Klemen
If you follow upgrade instructions from the docs *precisely* you will not loose any settings.

Now that the damage is done, switching settings file may lead to other problems.

You can try to manually do it like this:
1. open the OLD hesk_settings.inc.php file
2. copy everything from

Code: Select all

$hesk_settings['custom_fields']=array (
to

Code: Select all

#############################
#     DO NOT EDIT BELOW     #
#############################
3. download the NEW (2.4.2) hesk_settings.inc.php file from the server
4. find the same code as above, delete it and paste code from the old hesk_settings.inc.php file
5. save, upload and test


If that doesn't work you will need to delete the help desk (including database), restore backup and do the upgrade again. This time follow instructions step-by-step!

Re: custom fields lost after upgrade

Posted: Thu Jan 24, 2013 7:05 pm
by plc
Sorry. I didn't ask the right question at all.

I had originally added a bunch of sub categories but since it had been a while I mistakenly thought I had added them as custom fields -which isn't the case. What I had actually done was edited the index.php file to include hardcoded "fake" subcategories. Now that I remember I think I can recover fairly easily.

Thanks

Re: custom fields lost after upgrade

Posted: Sat Jan 26, 2013 2:46 pm
by Klemen
If you make custom changed to HESK files I would recommend that you document changes - write down exactly what you changed and where.

This will make applying customizations to future versions much easier.